eZ\Publish\Core\Repository\Tests\Service\Mock\ContentTest::testLoadContentByContentInfo PHP Метод

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

Test for the loadContentByContentInfo() method.
    public function testLoadContentByContentInfo()
    {
        $contentServiceMock = $this->getPartlyMockedContentService(array('loadContent'));
        $contentServiceMock->expects($this->once())->method('loadContent')->with($this->equalTo(42), $this->equalTo(array('cro-HR')), $this->equalTo(7), $this->equalTo(false))->will($this->returnValue('result'));
        $result = $contentServiceMock->loadContentByContentInfo(new ContentInfo(array('id' => 42)), array('cro-HR'), 7);
        $this->assertEquals('result', $result);
    }
ContentTest