eZ\Publish\Core\Persistence\Legacy\Tests\Content\TreeHandlerTest::testLoadContentInfoByRemoteId PHP Метод

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

    public function testLoadContentInfoByRemoteId()
    {
        $contentInfoData = array(new ContentInfo());
        $this->getContentGatewayMock()->expects($this->once())->method('loadContentInfo')->with(42)->will($this->returnValue(array(42)));
        $this->getContentMapperMock()->expects($this->once())->method('extractContentInfoFromRow')->with($this->equalTo(array(42)))->will($this->returnValue($contentInfoData));
        $this->assertSame($contentInfoData, $this->getTreeHandler()->loadContentInfo(42));
    }