File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
910namespace Test \User ;
1011
1112use OC \AppFramework \Http \Request ;
12- use OC \Authentication \Exceptions \InvalidTokenException ;
1313use OC \Authentication \Events \LoginFailed ;
14+ use OC \Authentication \Exceptions \InvalidTokenException ;
1415use OC \Authentication \Token \DefaultTokenMapper ;
1516use OC \Authentication \Token \DefaultTokenProvider ;
1617use 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 );
You can’t perform that action at this time.
0 commit comments