eZ\Publish\Core\REST\Server\Tests\Input\Parser\ObjectStateGroupCreateTest::getObjectStateServiceMock PHP Method

getObjectStateServiceMock() protected method

Get the object state service mock object.
protected getObjectStateServiceMock ( ) : eZ\Publish\API\Repository\ObjectStateService
return eZ\Publish\API\Repository\ObjectStateService
    protected function getObjectStateServiceMock()
    {
        $objectStateServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ObjectStateService', array(), array(), '', false);
        $objectStateServiceMock->expects($this->any())->method('newObjectStateGroupCreateStruct')->with($this->equalTo('test-group'))->will($this->returnValue(new ObjectStateGroupCreateStruct(array('identifier' => 'test-group'))));
        return $objectStateServiceMock;
    }