protected getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService | ||
return | eZ\Publish\API\Repository\ContentTypeService |
protected function getContentTypeServiceMock()
{
$contentTypeServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ContentTypeService', array(), array(), '', false);
$contentTypeServiceMock->expects($this->any())->method('loadContentType')->with($this->equalTo(4))->will($this->returnValue($this->getContentType()));
return $contentTypeServiceMock;
}