protected getContentTypeServiceMock ( ) : eZ\Publish\API\Repository\ContentTypeService | ||
리턴 | eZ\Publish\API\Repository\ContentTypeService |
protected function getContentTypeServiceMock()
{
$contentTypeServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ContentTypeService', array(), array(), '', false);
$contentTypeServiceMock->expects($this->any())->method('newFieldDefinitionCreateStruct')->with($this->equalTo('title'), $this->equalTo('ezstring'))->will($this->returnValue(new FieldDefinitionCreateStruct(array('identifier' => 'title', 'fieldTypeIdentifier' => 'ezstring'))));
return $contentTypeServiceMock;
}