Skip to content

Commit 7820046

Browse files
committed
added test for checking type of autocomplete_on_storefront
1 parent 1419752 commit 7820046

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,25 @@ 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+
226245
/**
227246
* Get reset password token
228247
*

0 commit comments

Comments
 (0)