protected getObjectStateServiceMock ( ) : eZ\Publish\API\Repository\ObjectStateService | ||
리턴 | eZ\Publish\API\Repository\ObjectStateService |
protected function getObjectStateServiceMock()
{
$objectStateServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ObjectStateService', array(), array(), '', false);
$objectStateServiceMock->expects($this->any())->method('newObjectStateUpdateStruct')->will($this->returnValue(new ObjectStateUpdateStruct()));
return $objectStateServiceMock;
}