Skip to content

Commit c72203a

Browse files
author
Dmytro Voskoboinikov
committed
MAGETWO-93969: Declaring allowed HTTP methods for controllers
1 parent 0f2a5f7 commit c72203a

File tree

1 file changed

+2
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Checkout/Controller

1 file changed

+2
-0
lines changed

dev/tests/integration/testsuite/Magento/Checkout/Controller/CartTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ public function testMessageAtAddToCartWithRedirect()
371371
];
372372
\Magento\TestFramework\Helper\Bootstrap::getInstance()->loadArea('frontend');
373373
$this->getRequest()->setPostValue($postData);
374+
$this->getRequest()->setMethod('POST');
374375

375376
$this->dispatch('checkout/cart/add');
376377

@@ -406,6 +407,7 @@ public function testMessageAtAddToCartWithoutRedirect()
406407
];
407408
\Magento\TestFramework\Helper\Bootstrap::getInstance()->loadArea('frontend');
408409
$this->getRequest()->setPostValue($postData);
410+
$this->getRequest()->setMethod('POST');
409411

410412
$this->dispatch('checkout/cart/add');
411413

0 commit comments

Comments
 (0)