File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
app/code/Magento/Checkout/Controller/Cart
dev/tests/integration/testsuite/Magento/Checkout/Controller Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- *
4
3
* Copyright © Magento, Inc. All rights reserved.
5
4
* See COPYING.txt for license details.
6
5
*/
@@ -95,7 +94,7 @@ protected function _updateShoppingCart()
95
94
*/
96
95
public function execute ()
97
96
{
98
- if (!$ this ->getRequest ()-> isPost () || ! $ this -> _formKeyValidator ->validate ($ this ->getRequest ())) {
97
+ if (!$ this ->_formKeyValidator ->validate ($ this ->getRequest ())) {
99
98
return $ this ->resultRedirectFactory ->create ()->setPath ('*/*/ ' );
100
99
}
101
100
Original file line number Diff line number Diff line change @@ -240,7 +240,6 @@ public function testUpdatePostAction()
240
240
'update_cart_action ' => 'update_qty ' ,
241
241
'form_key ' => $ formKey ->getFormKey (),
242
242
];
243
- $ this ->getRequest ()->setMethod (HttpRequest::METHOD_POST );
244
243
$ this ->getRequest ()->setPostValue ($ postData );
245
244
/** @var $customerSession \Magento\Customer\Model\Session */
246
245
$ customerSession = $ this ->_objectManager ->create (\Magento \Customer \Model \Session::class);
You can’t perform that action at this time.
0 commit comments