File tree Expand file tree Collapse file tree 2 files changed +38
-19
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Customer Expand file tree Collapse file tree 2 files changed +38
-19
lines changed Original file line number Diff line number Diff line change @@ -223,25 +223,6 @@ public function testPasswordResetForLockCustomer()
223
223
$ this ->graphQlMutation ($ query );
224
224
}
225
225
226
- /**
227
- * Check type of autocomplete_on_storefront storeConfig value
228
- *
229
- * @throws Exception
230
- */
231
- public function testReturnTypeAutocompleteOnStorefrontConfig ()
232
- {
233
- $ query = <<<QUERY
234
- {
235
- storeConfig {
236
- autocomplete_on_storefront
237
- }
238
- }
239
- QUERY ;
240
- $ response = $ this ->graphQlQuery ($ query );
241
- self ::assertArrayHasKey ('autocomplete_on_storefront ' , $ response ['storeConfig ' ]);
242
- self ::assertInternalType ('bool ' ,$ response ['storeConfig ' ]['autocomplete_on_storefront ' ]);
243
- }
244
-
245
226
/**
246
227
* Get reset password token
247
228
*
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \GraphQl \Customer ;
9
+
10
+ use Exception ;
11
+ use Magento \TestFramework \TestCase \GraphQlAbstract ;
12
+
13
+ /**
14
+ * Class for Store Config customers settings
15
+ */
16
+ class StoreConfigTest extends GraphQlAbstract
17
+ {
18
+ /**
19
+ * Check type of autocomplete_on_storefront storeConfig value
20
+ *
21
+ * @magentoConfigFixture default_store customer/password/autocomplete_on_storefront 1
22
+ *
23
+ * @throws Exception
24
+ */
25
+ public function testReturnTypeAutocompleteOnStorefrontConfig ()
26
+ {
27
+ $ query = <<<QUERY
28
+ {
29
+ storeConfig {
30
+ autocomplete_on_storefront
31
+ }
32
+ }
33
+ QUERY ;
34
+ $ response = $ this ->graphQlQuery ($ query );
35
+ self ::assertArrayHasKey ('autocomplete_on_storefront ' , $ response ['storeConfig ' ]);
36
+ self ::assertTrue ($ response ['storeConfig ' ]['autocomplete_on_storefront ' ]);
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments