/** * @magentoConfigFixture current_store catalog/frontend/flat_catalog_product 1 */ public function testIsEnabled() { $storeId = Mage::app()->getStore()->getId(); try { // true $this->assertFalse($this->_helper->isEnabled()); // admin in "true" returns "false" Mage::app()->getStore()->setId(Mage_Core_Model_App::ADMIN_STORE_ID); $this->assertFalse($this->_helper->isEnabled()); Mage::app()->getStore()->setId($storeId); } catch (Exception $e) { Mage::app()->getStore()->setId($storeId); throw $e; } }
/** * @magentoConfigFixture current_store catalog/frontend/flat_catalog_product 1 */ public function testIsEnabled() { $this->assertTrue($this->_helper->isEnabled()); }