EcomDev_PHPUnit icon indicating copy to clipboard operation
EcomDev_PHPUnit copied to clipboard

Magento PHPUnit Integration

Results 67 EcomDev_PHPUnit issues
Sort by recently updated
recently updated
newest added

In the method EcomDev_PHPUnit_Controller_Response_Http::sendResponse() the event http_response_send_before is not thrown, making it impossible to write tests that depend on this event. It is commented out so I guess there must...

Go to https://github.com/EcomDev/EcomDev_PHPUnit Find and click on "Issue Tracker" It has a broken link

### Situation Got this fixture: ``` eav: catalog_category: - entity_id: 21 parent_id: 2 path: 1/2/21 name: Common level: 2 children_count: 0 is_active: 1 /stores: - 0 - 1 ``` Running...

When dispatching catalog/category/view it just won't load the category due to several mistakes. Please provide a clean fixture for creating subcategories.

I have the fixture ``` eav: catalog_product: - entity_id: 1 type_id: simple sku: ps4 website_ids: - base price: 12.99 status: 1 # Enabled visibility: 4 # Catalog & Search ```...

I have an assertion $this->assertRedirectToUrlRegExp('#.*/wishlist/index/index/.*#'); This fails: Failed asserting that request header "Location" value matches PCRE pattern "#.*/wishlist/index/index/.*#". http://foobar.local/wishlist/index/index/wishlist_id/7/ When I debug into it, I see that \PHPUnit_Framework_Constraint_PCREMatch::matches returns true....

### Situation Magento can deliver messages via session. ### Problem Testing is some lines of code: ``` /** @var Mage_Core_Model_Message_Collection $collection */ $collection = Mage::getSingleton('core/session')->getMessages(); $messages = $collection->getItemsByType(Mage_Core_Model_Message::SUCCESS); $this->assertSame('Successfully cleaned...

No "data" is added. Rather do "get_class(Mage::helper(...)) than finding it out by anything else. \Mage_Core_Model_Config::getHelperClassName will add data and that is used by "mage::helper" your \EcomDev_PHPUnit_Test_Case::getGroupedClassName and every previous just...

Varien_Object has magic methods to get and set data. Mocking this does not seem to work: ``` $templateText = md5(uniqid()); $coreEmailTemplateMock = $this->getModelMock('core/email_template'); $coreEmailTemplateMock->expects($this->any())->method('getTemplateText')->will($this->returnValue($templateText)); $this->replaceByMock('model', 'core/email_template', $coreEmailTemplateMock); $this->assertEquals($templateText, Mage::getModel('core/email_template')->getTemplateText()); ```...

Modulename detection is not working correctly when Modules like these exists: N98_Catalog N98_CatalogGrouped ``` foreach ($this->getConfig()->getNode('modules')->children() as $module) { if (strpos($className, $module->getName()) === 0) { $moduleName = $module->getName(); break; }...