eZ\Publish\Core\Persistence\Cache\Tests\LocationHandlerTest::testLoadByRemoteId PHP Method

testLoadByRemoteId() public method

public testLoadByRemoteId ( )
    public function testLoadByRemoteId()
    {
        $this->loggerMock->expects($this->once())->method('logCall');
        $this->cacheMock->expects($this->never())->method($this->anything());
        $innerHandler = $this->getMock('eZ\\Publish\\SPI\\Persistence\\Content\\Location\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('locationHandler')->will($this->returnValue($innerHandler));
        $innerHandler->expects($this->once())->method('loadByRemoteId')->with('sve45gdy4e')->will($this->returnValue(new Location(array('id' => 33))));
        $handler = $this->persistenceCacheHandler->locationHandler();
        $handler->loadByRemoteId('sve45gdy4e');
    }