eZ\Publish\Core\Persistence\Cache\Tests\ContentTypeHandlerTest::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\\Type\\Handler');
        $this->persistenceHandlerMock->expects($this->once())->method('contentTypeHandler')->will($this->returnValue($innerHandler));
        $innerHandler->expects($this->once())->method('loadByRemoteId')->with('cwr34ln43njntekwf')->will($this->returnValue(null));
        $handler = $this->persistenceCacheHandler->contentTypeHandler();
        $handler->loadByRemoteId('cwr34ln43njntekwf');
    }