File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
app/code/Magento/WebapiAsync/Controller/Rest/Asynchronous
dev/tests/api-functional/testsuite/Magento/Quote/Api Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,11 @@ private function validateParameters(
261
261
}
262
262
}
263
263
}
264
- if (!empty ($ paramOverriders )) {
265
- $ message = 'The current request does not expect the next parameters: '
266
- . implode (', ' , $ paramOverriders );
267
- throw new \UnexpectedValueException (__ ($ message )->__toString ());
264
+
265
+ if (!empty ($ paramOverriders )) {
266
+ $ message = 'The current request does not expect the next parameters: '
267
+ . implode (', ' , $ paramOverriders );
268
+ throw new \UnexpectedValueException (__ ($ message )->__toString ());
268
269
}
269
270
}
270
271
}
Original file line number Diff line number Diff line change @@ -354,7 +354,9 @@ public function testPlaceOrder()
354
354
public function testAssignCustomerByGuestUser ()
355
355
{
356
356
$ this ->expectException (\Exception::class);
357
- $ this ->expectExceptionMessage ('You don \'t have the correct permissions to assign the customer to the cart. ' );
357
+ $ this ->expectExceptionMessage (
358
+ '{"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"fieldName":"customerId"}} '
359
+ );
358
360
359
361
/** @var $quote \Magento\Quote\Model\Quote */
360
362
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class)->load ('test01 ' , 'reserved_order_id ' );
You can’t perform that action at this time.
0 commit comments