public function testGetLinks() { $blocks = [0 => 'blocks']; $name = 'test_name'; $this->context->getLayout()->expects($this->once())->method('getChildBlocks')->with($name)->willReturn($blocks); $this->block->setNameInLayout($name); $this->assertEquals($blocks, $this->block->getLinks()); }
public function testGetLinks() { $blocks = array(0 => 'blocks'); $name = 'test_name'; $this->_context->getLayout()->expects($this->once())->method('getChildBlocks')->with($name)->will($this->returnValue($blocks)); $this->_block->setNameInLayout($name); $this->assertEquals($blocks, $this->_block->getLinks()); }