@@ -381,10 +381,8 @@ public function testSearchWithFilterWithPageSizeEqualTotalCount()
381
381
}
382
382
QUERY ;
383
383
$ this ->expectException (\Exception::class);
384
- $ this ->expectExceptionMessage (
385
- 'GraphQL response contains errors: currentPage value 2 specified is greater ' .
386
- 'than the 1 page(s) available '
387
- );
384
+ $ this ->expectExceptionMessage ('GraphQL response contains errors: currentPage value 2 specified is greater ' .
385
+ 'than the 1 page(s) available ' );
388
386
$ this ->graphQlQuery ($ query );
389
387
}
390
388
@@ -1045,10 +1043,8 @@ public function testQueryPageOutOfBoundException()
1045
1043
QUERY ;
1046
1044
1047
1045
$ this ->expectException (\Exception::class);
1048
- $ this ->expectExceptionMessage (
1049
- 'GraphQL response contains errors: currentPage value 2 specified is greater ' .
1050
- 'than the 1 page(s) available. '
1051
- );
1046
+ $ this ->expectExceptionMessage ('GraphQL response contains errors: currentPage value 2 specified is greater ' .
1047
+ 'than the 1 page(s) available. ' );
1052
1048
$ this ->graphQlQuery ($ query );
1053
1049
}
1054
1050
@@ -1079,10 +1075,8 @@ public function testQueryWithNoSearchOrFilterArgumentException()
1079
1075
QUERY ;
1080
1076
1081
1077
$ this ->expectException (\Exception::class);
1082
- $ this ->expectExceptionMessage (
1083
- 'GraphQL response contains errors: \'search \' or \'filter \' input argument is ' .
1084
- 'required. '
1085
- );
1078
+ $ this ->expectExceptionMessage ('GraphQL response contains errors: \'search \' or \'filter \' input argument is ' .
1079
+ 'required. ' );
1086
1080
$ this ->graphQlQuery ($ query );
1087
1081
}
1088
1082
@@ -1137,66 +1131,6 @@ public function testFilterProductsThatAreOutOfStockWithConfigSettings()
1137
1131
$ this ->assertEquals (1 , $ response ['products ' ]['total_count ' ]);
1138
1132
}
1139
1133
1140
- /**
1141
- * Verify that invalid page numbers return an error
1142
- *
1143
- * @magentoApiDataFixture Magento/Catalog/_files/products_with_layered_navigation_attribute.php
1144
- * @expectedException \Exception
1145
- * @expectedExceptionMessage currentPage value must be greater than 0
1146
- */
1147
- public function testInvalidPageNumbers ()
1148
- {
1149
- $ query = <<<QUERY
1150
- {
1151
- products (
1152
- filter: {
1153
- sku: {
1154
- like:"simple%"
1155
- }
1156
- }
1157
- pageSize: 4
1158
- currentPage: 0
1159
- ) {
1160
- items {
1161
- sku
1162
- }
1163
- }
1164
- }
1165
- QUERY ;
1166
-
1167
- $ this ->graphQlQuery ($ query );
1168
- }
1169
-
1170
- /**
1171
- * Verify that invalid page size returns an error
1172
- *
1173
- * @magentoApiDataFixture Magento/Catalog/_files/products_with_layered_navigation_attribute.php
1174
- * @expectedException \Exception
1175
- * @expectedExceptionMessage pageSize value must be greater than 0
1176
- */
1177
- public function testInvalidPageSize ()
1178
- {
1179
- $ query = <<<QUERY
1180
- {
1181
- products (
1182
- filter: {
1183
- sku: {
1184
- like:"simple%"
1185
- }
1186
- }
1187
- pageSize: 0
1188
- currentPage: 1
1189
- ) {
1190
- items {
1191
- sku
1192
- }
1193
- }
1194
- }
1195
- QUERY ;
1196
-
1197
- $ this ->graphQlQuery ($ query );
1198
- }
1199
-
1200
1134
/**
1201
1135
* Asserts the different fields of items returned after search query is executed
1202
1136
*
0 commit comments