We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f3346 commit 73f98afCopy full SHA for 73f98af
dev/tests/api-functional/testsuite/Magento/Quote/Api/CartItemRepositoryTest.php
@@ -138,6 +138,9 @@ public function testFailedAddItem(?array $cartItem)
138
$requestData = [
139
'cartItem' => $cartItem,
140
];
141
+
142
+ $this->expectException(\Exception::class);
143
+ $this->expectExceptionCode(TESTS_WEB_API_ADAPTER === self::ADAPTER_SOAP ? 0 : 400);
144
$this->_webApiCall($serviceInfo, $requestData);
145
}
146
0 commit comments