/** * @return Mage_Core_Model_Layout */ public function testSetChild() { $this->_layout->addContainer('one', 'One'); $this->_layout->addContainer('two', 'Two'); $this->_layout->addContainer('three', 'Three'); $this->assertSame($this->_layout, $this->_layout->setChild('one', 'two', '')); $this->_layout->setChild('one', 'three', ''); $this->assertSame(array('two', 'three'), $this->_layout->getChildNames('one')); return $this->_layout; }