public function testToHtmlPropagatesUrl() { $this->_block->setShouldPrepareInfoTabs(true); $childOne = $this->_layout->addBlock('Mage_Core_Block_Text', 'child1', 'block'); $this->_layout->addToParentGroup('child1', 'info_tabs'); $childTwo = $this->_layout->addBlock('Mage_Core_Block_Text', 'child2', 'block'); $this->_layout->addToParentGroup('child2', 'info_tabs'); $this->assertEmpty($childOne->getViewUrl()); $this->assertEmpty($childTwo->getViewUrl()); $this->_block->toHtml(); $this->assertNotEmpty($childOne->getViewUrl()); $this->assertNotEmpty($childTwo->getViewUrl()); }