Skip to content

Commit 650c215

Browse files
#24380: Integration tests fix.
1 parent 57a3546 commit 650c215

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/tests/integration/testsuite/Magento/Checkout/Controller/Cart/UpdateItemQtyTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Catalog\Model\Product;
1111
use Magento\Checkout\Model\Session;
1212
use Magento\Catalog\Api\ProductRepositoryInterface;
13+
use Magento\Framework\App\Request\Http as HttpRequest;
1314
use Magento\Framework\Data\Form\FormKey;
1415
use Magento\Framework\Serialize\Serializer\Json;
1516

@@ -81,6 +82,7 @@ public function testExecute($requestQuantity, $expectedResponse)
8182
];
8283
}
8384

85+
$this->getRequest()->setMethod(HttpRequest::METHOD_POST);
8486
$this->getRequest()->setPostValue($request);
8587
$this->dispatch('checkout/cart/updateItemQty');
8688
$response = $this->getResponse()->getBody();

0 commit comments

Comments
 (0)