@@ -211,8 +211,7 @@ public function testUpdateCustomerAddressWithMissingId()
211
211
212
212
$ this ->expectException (Exception::class);
213
213
$ this ->expectExceptionMessage (
214
- 'GraphQL response contains errors: Field "updateCustomerAddress" argument "id" of type "Int!" is ' .
215
- 'required but not provided. '
214
+ 'Field "updateCustomerAddress" argument "id" of type "Int!" is required but not provided. '
216
215
);
217
216
$ this ->graphQlMutation ($ mutation , [], '' , $ this ->getCustomerAuthHeaders ($ userName , $ password ));
218
217
}
@@ -271,19 +270,6 @@ public function testUpdateCustomerAddressWithInvalidIdType()
271
270
$ this ->graphQlMutation ($ mutation , [], '' , $ this ->getCustomerAuthHeaders ($ userName , $ password ));
272
271
}
273
272
274
- /**
275
- * @return array
276
- */
277
- public function invalidIdDataProvider ()
278
- {
279
- return [
280
- ['' , 'GraphQL response contains errors: Field "updateCustomerAddress" argument "id" of type "Int!" ' .
281
- 'is required but not provided. ' ],
282
- //TODO: why here the internal server error being trowed?
283
- ['id: "" ' , 'GraphQL response contains errors: Internal server error ' ]
284
- ];
285
- }
286
-
287
273
/**
288
274
* Update address with invalid input
289
275
*
@@ -319,17 +305,17 @@ public function testUpdateCustomerAddressWithInvalidInput(string $input, string
319
305
public function invalidInputDataProvider ()
320
306
{
321
307
return [
322
- ['' , 'GraphQL response contains errors: "input" value should be specified ' ],
323
- ['input: "" ' , 'GraphQL response contains errors: Expected type CustomerAddressInput, found "". ' ],
324
- ['input: "foo" ' , 'GraphQL response contains errors: Expected type CustomerAddressInput, found "foo". ' ]
308
+ ['' , '"input" value must be specified ' ],
309
+ ['input: "" ' , 'Expected type CustomerAddressInput, found "" ' ],
310
+ ['input: "foo" ' , 'Expected type CustomerAddressInput, found "foo" ' ]
325
311
];
326
312
}
327
313
328
314
/**
329
315
* @magentoApiDataFixture Magento/Customer/_files/customer.php
330
316
* @magentoApiDataFixture Magento/Customer/_files/customer_address.php
331
317
* @expectedException Exception
332
- * @expectedExceptionMessage GraphQL response contains errors: Could not find a address with ID "9999"
318
+ * @expectedExceptionMessage Could not find a address with ID "9999"
333
319
*/
334
320
public function testUpdateNotExistingCustomerAddress ()
335
321
{
0 commit comments