File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Catalog \Api \Data \CategoryInterface ;
11
11
use Magento \Catalog \Model \ResourceModel \Category \Collection as CategoryCollection ;
12
12
use Magento \Framework \DataObject ;
13
- use Magento \Framework \ GraphQl \Exception \ GraphQlNoSuchEntityException ;
13
+ use Magento \TestFramework \ TestCase \ GraphQl \ResponseContainsErrorsException ;
14
14
use Magento \TestFramework \TestCase \GraphQlAbstract ;
15
15
use Magento \Catalog \Api \Data \ProductInterface ;
16
16
use Magento \Catalog \Api \ProductRepositoryInterface ;
@@ -124,7 +124,7 @@ public function testNonExistentCategoryWithProductCount()
124
124
}
125
125
QUERY ;
126
126
127
- $ this ->expectException (GraphQlNoSuchEntityException ::class);
127
+ $ this ->expectException (ResponseContainsErrorsException ::class);
128
128
$ this ->expectExceptionMessage ('GraphQL response contains errors: Category doesn \'t exist ' );
129
129
$ this ->graphQlQuery ($ query );
130
130
}
You can’t perform that action at this time.
0 commit comments