/** * @covers Mage_Core_Model_Layout_ScheduledStructure::flushScheduledStructure */ public function testFlushScheduledStructure() { $this->assertNotEmpty($this->_model->getPaths()); $this->assertNotEmpty($this->_model->getElements()); $this->assertNotEmpty($this->_model->getStructure()); $this->_model->flushScheduledStructure(); $this->assertEmpty($this->_model->getPaths()); $this->assertEmpty($this->_model->getElements()); $this->assertEmpty($this->_model->getStructure()); }
/** * Get block object by name * * @param string $name * @return Mage_Core_Block_Abstract|bool */ public function getBlock($name) { if ($this->_scheduledStructure->hasElement($name)) { $this->_generateBlock($name); } if (isset($this->_blocks[$name])) { return $this->_blocks[$name]; } else { return false; } }