fix tests

This commit is contained in:
David Remer 2020-09-01 09:47:36 +03:00
parent 86de597fb7
commit 81637ebe6d
31 changed files with 475 additions and 449 deletions

View file

@ -48,7 +48,7 @@ class ApplicationContextRepositoryTest extends TestCase
/* @var ApplicationContextRepository $testee */
$testee = $this->buildTestee()[1];
$context = $testee->currentContext($shippingPreference);
$context = $testee->current_context($shippingPreference);
self::assertInstanceOf(
ApplicationContext::class,
@ -79,9 +79,9 @@ class ApplicationContextRepositoryTest extends TestCase
'shippingPreference' => ApplicationContext::SHIPPING_PREFERENCE_NO_SHIPPING,
'expected' => [
'locale' => 'de-DE',
'brandName' => 'Acme corp.',
'landingPage' => ApplicationContext::LANDING_PAGE_BILLING,
'shippingPreference' => ApplicationContext::SHIPPING_PREFERENCE_NO_SHIPPING,
'brand_name' => 'Acme corp.',
'landing_page' => ApplicationContext::LANDING_PAGE_BILLING,
'shipping_preference' => ApplicationContext::SHIPPING_PREFERENCE_NO_SHIPPING,
],
],
];