eZ\Publish\Core\Limitation\Tests\Base::getUserMock PHP Method

getUserMock() public method

public getUserMock ( array $mockMethods = [] ) : eZ\Publish\API\Repository\Values\User\User | PHPUnit_Framework_MockObject_MockObject
$mockMethods array For specifying the methods to mock, all by default
return eZ\Publish\API\Repository\Values\User\User | PHPUnit_Framework_MockObject_MockObject
    public function getUserMock(array $mockMethods = array())
    {
        if ($this->userMock !== null) {
            return $this->userMock;
        }
        return $this->userMock = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\User\\User', $mockMethods, array(), '', false);
    }