Skip to content

Commit

Permalink
Small api-functional test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ldusan84 committed Feb 15, 2019
1 parent 8d828da commit 996ba90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Magento\Catalog\Api\Data\CategoryInterface;
use Magento\Catalog\Model\ResourceModel\Category\Collection as CategoryCollection;
use Magento\Framework\DataObject;
use Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException;
use Magento\TestFramework\TestCase\GraphQl\ResponseContainsErrorsException;
use Magento\TestFramework\TestCase\GraphQlAbstract;
use Magento\Catalog\Api\Data\ProductInterface;
use Magento\Catalog\Api\ProductRepositoryInterface;
Expand Down Expand Up @@ -124,7 +124,7 @@ public function testNonExistentCategoryWithProductCount()
}
QUERY;

$this->expectException(GraphQlNoSuchEntityException::class);
$this->expectException(ResponseContainsErrorsException::class);
$this->expectExceptionMessage('GraphQL response contains errors: Category doesn\'t exist');
$this->graphQlQuery($query);
}
Expand Down

0 comments on commit 996ba90

Please sign in to comment.