eZ\Publish\Core\REST\Server\Tests\Input\Parser\ContentTypeGroupInputTest::getContentTypeServiceMock PHP Method

getContentTypeServiceMock() protected method

Get the content type service mock object.
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('newContentTypeGroupCreateStruct')->with($this->equalTo('Identifier Bar'))->will($this->returnValue(new ContentTypeGroupCreateStruct(array('identifier' => 'Identifier Bar'))));
        return $contentTypeServiceMock;
    }