Ejemplo n.º 1
0
 public function testMatchEventParentFallback()
 {
     $flatHelper = $this->getMock('Mage_Catalog_Helper_Product_Flat', array(), array(), '', false);
     $flatHelper->expects($this->any())->method('isAvailable')->will($this->returnValue(true));
     $flatHelper->expects($this->any())->method('isBuilt')->will($this->returnValue(true));
     $this->_event->expects($this->any())->method('getFlatHelper')->will($this->returnValue($flatHelper));
     $this->_event->expects($this->any())->method('getEntity')->will($this->returnValue('some_value'));
     $this->assertFalse($this->_model->matchEvent($this->_event));
 }