File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
api-functional/testsuite/Magento/WebapiAsync/Model
integration/testsuite/Magento/Framework/MessageQueue Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public function testAsyncScheduleBulkWrongEntity($products)
184184 try {
185185 $ response = $ this ->saveProductAsync ($ products );
186186 } catch (\Exception $ e ) {
187- $ this ->assertEquals (500 , $ e ->getCode ());
187+ $ this ->assertEquals (400 , $ e ->getCode ());
188188 }
189189 $ this ->assertNull ($ response );
190190 $ this ->assertEquals (0 , $ this ->checkProductsCreation ());
Original file line number Diff line number Diff line change 66
77namespace Magento \Framework \MessageQueue ;
88
9+ use Magento \Framework \Exception \LocalizedException ;
910use Magento \Framework \ObjectManagerInterface ;
1011use Magento \Framework \MessageQueue \MessageEncoder ;
1112use Magento \Framework \Communication \Config ;
@@ -119,10 +120,9 @@ public function testDecodeInvalidMessageFormat()
119120 */
120121 public function testDecodeInvalidMessage ()
121122 {
122- $ this ->expectException (\LogicException ::class);
123+ $ this ->expectException (LocalizedException ::class);
123124
124- $ message = 'Property "NotExistingField" does not have accessor method "getNotExistingField" in class '
125- . '"Magento\Customer\Api\Data\CustomerInterface". ' ;
125+ $ message = 'customer.created" must be an instance of "Magento\Customer\Api\Data\CustomerInterface". ' ;
126126 $ this ->expectExceptionMessage ($ message );
127127 $ this ->encoder ->decode ('customer.created ' , '{"not_existing_field": "value"} ' );
128128 }
You can’t perform that action at this time.
0 commit comments