Skip to content

Commit e9a06a6

Browse files
committed
API-functional tests improvements
1 parent e0f4132 commit e9a06a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/UrlRewritesTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class UrlRewritesTest extends GraphQlAbstract
2525
*/
2626
public function testProductWithNoCategoriesAssigned()
2727
{
28-
28+
$productSku = 'virtual-product';
2929
$query
3030
= <<<QUERY
3131
{
32-
products (search:"Virtual Product") {
32+
products (filter: {sku: {eq: "{$productSku}"}}) {
3333
items {
3434
name,
3535
sku,
@@ -79,11 +79,11 @@ public function testProductWithNoCategoriesAssigned()
7979
*/
8080
public function testProductWithOneCategoryAssigned()
8181
{
82-
82+
$productSku = 'simple';
8383
$query
8484
= <<<QUERY
8585
{
86-
products (search:"Simple Product") {
86+
products (filter: {sku: {eq: "{$productSku}"}}) {
8787
items {
8888
name,
8989
sku,

0 commit comments

Comments
 (0)