/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/CustomerStoreConfigTest.php
63 строки
1 KB
Deepak Soni
LYNX-867: [AC] Intoroduce GraphQL queries returning applied customer group and cart rules
03 июн 2025, 16:31
Не верифицирован
03 июн 2025, 16:31
625b01e
Код
Авторство
О чём код?
<?php /** * Copyright 2025 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\GraphQl\Customer; use Magento\TestFramework\Fixture\Config; use Magento\TestFramework\TestCase\GraphQlAbstract; /** * Test coverage for Customer Groups Config Data */ class CustomerStoreConfigTest extends GraphQlAbstract { #[ Config('customer/account_information/graphql_share_customer_group', true) ] public function testCustomerGroupsGraphQlStoreConfig(): void { $this->assertEquals( [ 'storeConfig' => [ 'graphql_share_customer_group' => true ] ], $this->graphQlQuery($this->getStoreConfigQuery()) ); } #[ Config('customer/account_information/graphql_share_customer_group', false) ] public function testCustomerGroupsGraphQlStoreConfigDisabled(): void { $this->assertEquals( [ 'storeConfig' => [ 'graphql_share_customer_group' => false ] ], $this->graphQlQuery($this->getStoreConfigQuery()) ); } /** * Generates storeConfig query with newly added configurations * * @return string */ private function getStoreConfigQuery(): string { return <<<QUERY { storeConfig { graphql_share_customer_group } } QUERY; } }