EcomDev_PHPUnit
EcomDev_PHPUnit copied to clipboard
Magento PHPUnit Integration
When running an adminhtml controllertest and in the next test a mocked user session is created the AdminGws Observer causes an error. In Function \EcomDev_PHPUnit_Test_Case_Controller::reset we should also reset the...
When creating a new testclass without any test methods inside, EcomDev adds an Error Class "PHPUnit_Framework_Warning" with message "No tests found in class '...' to the tests array. EcomDev then...
$this->setCurrentStore('test_storeview'); $this->dispatch('/'); Will fall back to default storeview. Problem is in \EcomDev_PHPUnit_Test_Case_Controller::getUrlModel when no _store param is given in arguments. ``` if ($params['_store'] !== EcomDev_PHPUnit_Model_App::ADMIN_STORE_CODE) { $this->setCurrentStore($params['_store']); $urlModel = Mage::getModel('core/url');...
For current test model ``` php $this->assertMethodEquals($expectedValue); ```
Create fixture load for configurable, bundle, grouped and downloadable products
I have a module that registers a frontend event "controller_action_predispatch_wishlist_index_send" Steps to reproduce: 1. $this->dispatch('/); 2. $this->dispatch('wishlist/index/send'); 3. Event controller_action_predispatch_wishlist_index_send is not fired If I directly dispatch the "right" action,...
Notice: Undefined offset: 2 in /lib/EcomDev/PHPUnit/Constraint/Controller/Request.php on line 86 The above happens when parsing route of type 'module/action'. When route is exploded it has 2 fields, code on line 86...