eZ\Publish\Core\Persistence\Legacy\Tests\Content\LocationHandlerTest::testLoadLocation PHP Method

testLoadLocation() public method

public testLoadLocation ( )
    public function testLoadLocation()
    {
        $handler = $this->getLocationHandler();
        $this->treeHandler->expects($this->once())->method('loadLocation')->with(77)->will($this->returnValue(new \eZ\Publish\SPI\Persistence\Content\Location()));
        $location = $handler->load(77);
        $this->assertTrue($location instanceof \eZ\Publish\SPI\Persistence\Content\Location);
    }