diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-08-28 16:11:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 16:11:46 +0200 |
commit | 7b8364e001119aff43a236f2941da0c405c21f29 (patch) | |
tree | b5b92fa00a480204bb942451bae80cc3dd084fac /tests | |
parent | 286bf2b84ffda4c5878026b28aa2bdd0ef75b54a (diff) | |
parent | 2c8e7912f30df1d3f2d1be97eba52ebf3761cf26 (diff) | |
download | nextcloud-server-7b8364e001119aff43a236f2941da0c405c21f29.tar.gz nextcloud-server-7b8364e001119aff43a236f2941da0c405c21f29.zip |
Merge pull request #21288 from lmamane/master
Return correct loginname in credentials
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Authentication/LoginCredentials/StoreTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/Authentication/LoginCredentials/StoreTest.php b/tests/lib/Authentication/LoginCredentials/StoreTest.php index ea490b76b8a..67cb0a18297 100644 --- a/tests/lib/Authentication/LoginCredentials/StoreTest.php +++ b/tests/lib/Authentication/LoginCredentials/StoreTest.php @@ -141,7 +141,8 @@ class StoreTest extends TestCase { } public function testGetLoginCredentialsInvalidTokenLoginCredentials() { - $uid = 'user987'; + $uid = 'id987'; + $user = 'user987'; $password = '7389374'; $this->session->expects($this->once()) @@ -158,8 +159,8 @@ class StoreTest extends TestCase { $this->session->expects($this->once()) ->method('get') ->with($this->equalTo('login_credentials')) - ->willReturn('{"run":true,"uid":"user987","password":"7389374"}'); - $expected = new Credentials('user987', 'user987', '7389374'); + ->willReturn('{"run":true,"uid":"id987","loginName":"user987","password":"7389374"}'); + $expected = new Credentials($uid, $user, $password); $actual = $this->store->getLoginCredentials(); |