eZ\Publish\Core\Repository\Tests\Service\Mock\ContentTest::testInternalLoadContentNotFound PHP Method

testInternalLoadContentNotFound() public method

    public function testInternalLoadContentNotFound()
    {
        $contentService = $this->getPartlyMockedContentService();
        /** @var \PHPUnit_Framework_MockObject_MockObject $contentHandler */
        $contentHandler = $this->getPersistenceMock()->contentHandler();
        $id = 123;
        $versionNo = 7;
        $languages = null;
        $contentHandler->expects($this->once())->method('load')->with($id, $versionNo, $languages)->will($this->throwException($this->getMock('eZ\\Publish\\API\\Repository\\Exceptions\\NotFoundException')));
        $contentService->internalLoadContent($id, $languages, $versionNo);
    }
ContentTest