Skip to content

Commit

Permalink
added test for checking type of autocomplete_on_storefront
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Apr 29, 2020
1 parent 1419752 commit 7820046
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,25 @@ public function testPasswordResetForLockCustomer()
$this->graphQlMutation($query);
}

/**
* Check type of autocomplete_on_storefront storeConfig value
*
* @throws Exception
*/
public function testReturnTypeAutocompleteOnStorefrontConfig()
{
$query = <<<QUERY
{
storeConfig {
autocomplete_on_storefront
}
}
QUERY;
$response = $this->graphQlQuery($query);
self::assertArrayHasKey('autocomplete_on_storefront', $response['storeConfig']);
self::assertInternalType('bool',$response['storeConfig']['autocomplete_on_storefront']);
}

/**
* Get reset password token
*
Expand Down

0 comments on commit 7820046

Please sign in to comment.