Skip to content

Commit 6231bd6

Browse files
AC-12755 Improve web api async
1 parent e1d4dfa commit 6231bd6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/WebapiAsync/Controller/Rest/Asynchronous/InputParamsResolver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
/**
2828
* This class is responsible for retrieving resolved input data
29+
*
30+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2931
*/
3032
class InputParamsResolver
3133
{
@@ -160,7 +162,7 @@ public function getInputData()
160162
$inputData = $this->request->getRequestData();
161163

162164
$httpMethod = $this->request->getHttpMethod();
163-
if ($httpMethod == RestRequest::HTTP_METHOD_DELETE) {
165+
if ($httpMethod === RestRequest::HTTP_METHOD_DELETE) {
164166
$requestBodyParams = $this->request->getBodyParams();
165167
$inputData = array_merge($requestBodyParams, $inputData);
166168
}

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestCartManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public function testPlaceOrder()
354354
public function testAssignCustomerByGuestUser()
355355
{
356356
$this->expectException(\Exception::class);
357-
$this->expectExceptionMessage('"%fieldName" is required. Enter and try again.');
357+
$this->expectExceptionMessage('\"%fieldName\" is required. Enter and try again.');
358358

359359
/** @var $quote \Magento\Quote\Model\Quote */
360360
$quote = $this->objectManager->create(\Magento\Quote\Model\Quote::class)->load('test01', 'reserved_order_id');

0 commit comments

Comments
 (0)