eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ContentTypeTest::generateLocationForContentType PHP Method

generateLocationForContentType() private method

Generates a Location object in respect of a given content type identifier.
private generateLocationForContentType ( integer $contentTypeId ) : PHPUnit_Framework_MockObject_MockObject
$contentTypeId integer
return PHPUnit_Framework_MockObject_MockObject
    private function generateLocationForContentType($contentTypeId)
    {
        $location = $this->getLocationMock();
        $location->expects($this->any())->method('getContentInfo')->will($this->returnValue($this->generateContentInfoForContentType($contentTypeId)));
        return $location;
    }