@@ -381,13 +381,13 @@ public function testSearchWithFilterWithPageSizeEqualTotalCount()
381
381
}
382
382
QUERY ;
383
383
$ this ->expectException (\Exception::class);
384
- $ this ->expectExceptionMessage ('GraphQL response contains errors: currentPage value 1 specified is greater ' .
385
- 'than the number of pages available. ' );
384
+ $ this ->expectExceptionMessage ('GraphQL response contains errors: currentPage value 2 specified is greater ' .
385
+ 'than the 1 page(s) available ' );
386
386
$ this ->graphQlQuery ($ query );
387
387
}
388
388
389
389
/**
390
- * The query returns a total_count of 2 records; setting the pageSize = 1 and currentPage2
390
+ * The query returns a total_count of 2 records; setting the pageSize = 1 and currentPage = 2
391
391
* Expected result is to get the second product on the list on the second page
392
392
*
393
393
* @magentoApiDataFixture Magento/Catalog/_files/multiple_products.php
@@ -449,7 +449,7 @@ public function testSearchWithFilterPageSizeLessThanCurrentPage()
449
449
* @var ProductRepositoryInterface $productRepository
450
450
*/
451
451
$ productRepository = ObjectManager::getInstance ()->get (ProductRepositoryInterface::class);
452
- // when pagSize = 1 and currentPage = 2, it should have simple2 on first page and simple1 on 2nd page
452
+ // when pageSize = 1 and currentPage = 2, it should have simple2 on first page and simple1 on 2nd page
453
453
// since sorting is done on price in the DESC order
454
454
$ product = $ productRepository ->get ('simple1 ' );
455
455
$ filteredProducts = [$ product ];
@@ -1132,8 +1132,8 @@ public function testQueryPageOutOfBoundException()
1132
1132
QUERY ;
1133
1133
1134
1134
$ this ->expectException (\Exception::class);
1135
- $ this ->expectExceptionMessage ('GraphQL response contains errors: currentPage value 1 specified is greater ' .
1136
- 'than the number of pages available. ' );
1135
+ $ this ->expectExceptionMessage ('GraphQL response contains errors: currentPage value 2 specified is greater ' .
1136
+ 'than the 1 page(s) available. ' );
1137
1137
$ this ->graphQlQuery ($ query );
1138
1138
}
1139
1139
0 commit comments