Skip to content

Commit 133c438

Browse files
committed
chore: Adapt SessionTest to getToken being called twice
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 3a8e64f commit 133c438

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/lib/User/SessionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
45
* This file is licensed under the Affero General Public License version 3 or
@@ -9,8 +10,8 @@
910
namespace Test\User;
1011

1112
use OC\AppFramework\Http\Request;
12-
use OC\Authentication\Exceptions\InvalidTokenException;
1313
use OC\Authentication\Events\LoginFailed;
14+
use OC\Authentication\Exceptions\InvalidTokenException;
1415
use OC\Authentication\Token\DefaultTokenMapper;
1516
use OC\Authentication\Token\DefaultTokenProvider;
1617
use OC\Authentication\Token\IProvider;
@@ -1035,7 +1036,7 @@ public function testTryTokenLoginWithDisabledUser() {
10351036
->method('getHeader')
10361037
->with('Authorization')
10371038
->willReturn('Bearer xxxxx');
1038-
$this->tokenProvider->expects($this->once())
1039+
$this->tokenProvider->expects($this->atLeastOnce())
10391040
->method('getToken')
10401041
->with('xxxxx')
10411042
->willReturn($token);

0 commit comments

Comments
 (0)