eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ContentTest::generateLocationForContentId PHP Method

generateLocationForContentId() private method

Generates a Location mock in respect of a given content Id.
private generateLocationForContentId ( integer $contentId ) : PHPUnit_Framework_MockObject_MockObject
$contentId integer
return PHPUnit_Framework_MockObject_MockObject
    private function generateLocationForContentId($contentId)
    {
        $location = $this->getLocationMock();
        $location->expects($this->any())->method('getContentInfo')->will($this->returnValue($this->getContentInfoMock(array('id' => $contentId))));
        return $location;
    }