Skip to content

Commit d363a5d

Browse files
committed
Moved test for autocomplete_on_storefront to separate file
1 parent 7820046 commit d363a5d

File tree

2 files changed

+38
-19
lines changed

2 files changed

+38
-19
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Customer/ResetPasswordTest.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -223,25 +223,6 @@ public function testPasswordResetForLockCustomer()
223223
$this->graphQlMutation($query);
224224
}
225225

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-
245226
/**
246227
* Get reset password token
247228
*
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
}

0 commit comments

Comments
 (0)