eZ\Publish\Core\REST\Server\Tests\Security\RestSessionBasedAuthenticatorTest::createUser PHP Method

createUser() private method

private createUser ( $userId ) : User
$userId
return eZ\Publish\Core\MVC\Symfony\Security\User
    private function createUser($userId)
    {
        $apiUser = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\User\\User');
        $apiUser->expects($this->any())->method('__get')->with('id')->will($this->returnValue($userId));
        return new EzUser($apiUser);
    }