Skip to content

Commit 9b58c61

Browse files
AnujNehraAnujNehra
authored andcommitted
ACP2E-1986: Rest api V1/carts/mine/estimate-shipping-methods show 500 Error
1 parent d1b38c2 commit 9b58c61

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/WebapiAsync/Model/AsyncBulkScheduleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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());

dev/tests/integration/testsuite/Magento/Framework/MessageQueue/MessageEncoderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\Framework\MessageQueue;
88

9+
use Magento\Framework\Exception\LocalizedException;
910
use Magento\Framework\ObjectManagerInterface;
1011
use Magento\Framework\MessageQueue\MessageEncoder;
1112
use 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
}

0 commit comments

Comments
 (0)