Пример #1
0
 public function testCanShowFalse()
 {
     $category = new Mage_Catalog_Model_Category();
     $this->assertFalse($this->_helper->canShow($category));
     $category->setId(1);
     $this->assertFalse($this->_helper->canShow($category));
     $category->setIsActive(true);
     $this->assertFalse($this->_helper->canShow($category));
 }
Пример #2
0
 public function testCanShowFalse()
 {
     /** @var $category Mage_Catalog_Model_Category */
     $category = Mage::getModel('Mage_Catalog_Model_Category');
     $this->assertFalse($this->_helper->canShow($category));
     $category->setId(1);
     $this->assertFalse($this->_helper->canShow($category));
     $category->setIsActive(true);
     $this->assertFalse($this->_helper->canShow($category));
 }