Skip to content

Commit

Permalink
LYNX-303: Updated storeConfig test
Browse files Browse the repository at this point in the history
  • Loading branch information
sumesh-GL committed Dec 12, 2023
1 parent 17bd44f commit a567bc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 57 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
*/
class StoreConfigResolverTest extends GraphQlAbstract
{
private const MAX_ITEMS_TO_DISPLAY = 5;

#[
ConfigFixture(Data::XML_PATH_GUEST_CHECKOUT, true, ScopeInterface::SCOPE_STORE, 'default'),
ConfigFixture('checkout/options/onepage_checkout_enabled', true, ScopeInterface::SCOPE_STORE, 'default'),
ConfigFixture('checkout/options/max_items_display_count', self::MAX_ITEMS_TO_DISPLAY)
]
public function testGetStoreConfig(): void
{
Expand All @@ -29,6 +32,7 @@ public function testGetStoreConfig(): void
storeConfig {
is_guest_checkout_enabled,
is_one_page_checkout_enabled,
max_items_in_order_summary
}
}
QUERY;
Expand All @@ -47,5 +51,6 @@ private function validateStoreConfig(
): void {
$this->assertTrue($responseConfig['is_guest_checkout_enabled']);
$this->assertTrue($responseConfig['is_one_page_checkout_enabled']);
$this->assertEquals(self::MAX_ITEMS_TO_DISPLAY, $responseConfig['max_items_in_order_summary']);
}
}

0 comments on commit a567bc8

Please sign in to comment.