FluidTYPO3\Fluidpages\Tests\Unit\Provider\PageProviderTest::testGetInheritanceTree PHP Метод

testGetInheritanceTree() публичный Метод

public testGetInheritanceTree ( array $input, array $expected )
$input array
$expected array
    public function testGetInheritanceTree(array $input, array $expected)
    {
        $record = array('uid' => 1);
        $instance = $this->getMock('FluidTYPO3\\Fluidpages\\Provider\\PageProvider', array('loadRecordTreeFromDatabase'));
        $instance->expects($this->once())->method('loadRecordTreeFromDatabase')->with($record)->willReturn($input);
        $result = $this->callInaccessibleMethod($instance, 'getInheritanceTree', $record);
        $this->assertEquals($expected, $result);
    }