Skip to content

Commit 996ba90

Browse files
committed
Small api-functional test fix
1 parent 8d828da commit 996ba90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Catalog\Api\Data\CategoryInterface;
1111
use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection;
1212
use Magento\Framework\DataObject;
13-
use Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException;
13+
use Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException;
1414
use Magento\TestFramework\TestCase\GraphQlAbstract;
1515
use Magento\Catalog\Api\Data\ProductInterface;
1616
use Magento\Catalog\Api\ProductRepositoryInterface;
@@ -124,7 +124,7 @@ public function testNonExistentCategoryWithProductCount()
124124
}
125125
QUERY;
126126

127-
$this->expectException(GraphQlNoSuchEntityException::class);
127+
$this->expectException(ResponseContainsErrorsException::class);
128128
$this->expectExceptionMessage('GraphQL response contains errors: Category doesn\'t exist');
129129
$this->graphQlQuery($query);
130130
}

0 commit comments

Comments
 (0)