/** * @magentoDataFixture Mage/Catalog/_files/multiple_products.php */ public function testGetListUrl() { /** @var $empty Mage_Catalog_Helper_Product_Compare */ $empty = Mage::getObjectManager()->create('Mage_Catalog_Helper_Product_Compare'); $this->assertContains('/catalog/product_compare/index/', $empty->getListUrl()); $this->_populateCompareList(); $this->assertRegExp('#/catalog/product_compare/index/items/(?:10,11|11,10)/#', $this->_helper->getListUrl()); }
/** * @magentoDataFixture Mage/Catalog/_files/two_products.php */ public function testGetListUrl() { $empty = new Mage_Catalog_Helper_Product_Compare(); $this->assertContains('/catalog/product_compare/index/', $empty->getListUrl()); $this->_populateCompareList(); $this->assertRegExp('#/catalog/product_compare/index/items/(?:10,11|11,10)/#', $this->_helper->getListUrl()); }