mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
chore: Adapt SessionTest to getToken being called twice
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
3a8e64fce3
commit
133c438f6a
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
|
||||
* This file is licensed under the Affero General Public License version 3 or
|
||||
|
|
@ -9,8 +10,8 @@
|
|||
namespace Test\User;
|
||||
|
||||
use OC\AppFramework\Http\Request;
|
||||
use OC\Authentication\Exceptions\InvalidTokenException;
|
||||
use OC\Authentication\Events\LoginFailed;
|
||||
use OC\Authentication\Exceptions\InvalidTokenException;
|
||||
use OC\Authentication\Token\DefaultTokenMapper;
|
||||
use OC\Authentication\Token\DefaultTokenProvider;
|
||||
use OC\Authentication\Token\IProvider;
|
||||
|
|
@ -1035,7 +1036,7 @@ class SessionTest extends \Test\TestCase {
|
|||
->method('getHeader')
|
||||
->with('Authorization')
|
||||
->willReturn('Bearer xxxxx');
|
||||
$this->tokenProvider->expects($this->once())
|
||||
$this->tokenProvider->expects($this->atLeastOnce())
|
||||
->method('getToken')
|
||||
->with('xxxxx')
|
||||
->willReturn($token);
|
||||
|
|
|
|||
Loading…
Reference in a new issue