Commit fd046e24 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

! Fix default request method

parent aa11241e
...@@ -1963,6 +1963,10 @@ abstract class EcomDev_PHPUnit_Test_Case_Controller extends EcomDev_PHPUnit_Test ...@@ -1963,6 +1963,10 @@ abstract class EcomDev_PHPUnit_Test_Case_Controller extends EcomDev_PHPUnit_Test
); );
} }
if (!$this->getRequest()->getMethod()) {
$this->getRequest()->setMethod('GET');
}
// Workaround for form key // Workaround for form key
if ($this->getRequest()->isPost()) { if ($this->getRequest()->isPost()) {
$this->getRequest()->setPost('form_key', Mage::getSingleton('core/session')->getFromKey()); $this->getRequest()->setPost('form_key', Mage::getSingleton('core/session')->getFromKey());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment