eZ\Publish\Core\REST\Server\Tests\Input\Parser\LocationUpdateTest::getLocationServiceMock PHP Method

getLocationServiceMock() protected method

Get the location service mock object.
protected getLocationServiceMock ( ) : eZ\Publish\API\Repository\LocationService
return eZ\Publish\API\Repository\LocationService
    protected function getLocationServiceMock()
    {
        $locationServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\LocationService', array(), array(), '', false);
        $locationServiceMock->expects($this->any())->method('newLocationUpdateStruct')->will($this->returnValue(new LocationUpdateStruct()));
        return $locationServiceMock;
    }