eZ\Publish\Core\REST\Server\Tests\Input\Parser\UserGroupUpdateTest::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()
    {
        $userServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\LocationService', array(), array(), '', false);
        $userServiceMock->expects($this->any())->method('loadLocation')->with($this->equalTo(5))->will($this->returnValue(new Location(array('contentInfo' => new ContentInfo(array('id' => 4))))));
        return $userServiceMock;
    }