Skip to content

Commit a567bc8

Browse files
committed
LYNX-303: Updated storeConfig test
1 parent 17bd44f commit a567bc8

File tree

2 files changed

+5
-57
lines changed

2 files changed

+5
-57
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/GetMaxItemsInOrderSummaryTest.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/StoreConfigResolverTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
*/
1818
class StoreConfigResolverTest extends GraphQlAbstract
1919
{
20+
private const MAX_ITEMS_TO_DISPLAY = 5;
21+
2022
#[
2123
ConfigFixture(Data::XML_PATH_GUEST_CHECKOUT, true, ScopeInterface::SCOPE_STORE, 'default'),
2224
ConfigFixture('checkout/options/onepage_checkout_enabled', true, ScopeInterface::SCOPE_STORE, 'default'),
25+
ConfigFixture('checkout/options/max_items_display_count', self::MAX_ITEMS_TO_DISPLAY)
2326
]
2427
public function testGetStoreConfig(): void
2528
{
@@ -29,6 +32,7 @@ public function testGetStoreConfig(): void
2932
storeConfig {
3033
is_guest_checkout_enabled,
3134
is_one_page_checkout_enabled,
35+
max_items_in_order_summary
3236
}
3337
}
3438
QUERY;
@@ -47,5 +51,6 @@ private function validateStoreConfig(
4751
): void {
4852
$this->assertTrue($responseConfig['is_guest_checkout_enabled']);
4953
$this->assertTrue($responseConfig['is_one_page_checkout_enabled']);
54+
$this->assertEquals(self::MAX_ITEMS_TO_DISPLAY, $responseConfig['max_items_in_order_summary']);
5055
}
5156
}

0 commit comments

Comments
 (0)