forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-5092: GraphQl-535: provided catalog configs magento#650
- Merge Pull Request magento/graphql-ce#650 from magento/graphql-ce:graphQL-535-provide-catalog-cofigs-for-pwa - Merged commits: 1. 9d240e3 2. 8f36cf2 3. 9f2f5b6
- Loading branch information
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/StoreConfigTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\GraphQl\Catalog; | ||
|
||
use Magento\TestFramework\TestCase\GraphQlAbstract; | ||
|
||
/** | ||
* Test the GraphQL endpoint's StoreConfigs query for Catalog Configs | ||
*/ | ||
class StoreConfigTest extends GraphQlAbstract | ||
{ | ||
protected function setUp() | ||
{ | ||
$this->markTestIncomplete('https://github.com/magento/graphql-ce/issues/167'); | ||
} | ||
|
||
/** | ||
* @magentoApiDataFixture Magento/Store/_files/store.php | ||
*/ | ||
public function testGetStoreConfig() | ||
{ | ||
$query | ||
= <<<QUERY | ||
{ | ||
storeConfig{ | ||
product_url_suffix, | ||
category_url_suffix, | ||
title_separator, | ||
list_mode, | ||
grid_per_page_values, | ||
list_per_page_values, | ||
grid_per_page, | ||
list_per_page, | ||
catalog_default_sort_by | ||
} | ||
} | ||
QUERY; | ||
$response = $this->graphQlQuery($query); | ||
$this->assertArrayHasKey('storeConfig', $response); | ||
|
||
//TODO: provide assertions after unmarking test as incomplete | ||
} | ||
} |