public function testSetLayout() { $layout = new Mage_Core_Model_Layout(); $headBlock = new Mage_Core_Block_Template(); $layout->addBlock($headBlock, 'head'); $this->_block->setLayout($layout); $this->assertNotEmpty($headBlock->getTitle()); $this->assertEquals($this->_product->getMetaTitle(), $headBlock->getTitle()); $this->assertEquals($this->_product->getMetaKeyword(), $headBlock->getKeywords()); $this->assertEquals($this->_product->getMetaDescription(), $headBlock->getDescription()); }