diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2020-06-07 15:41:09 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-20 16:02:23 +0200 |
commit | 2c8e7912f30df1d3f2d1be97eba52ebf3761cf26 (patch) | |
tree | 837b6df7393442434822fad6148b588c10603855 | |
parent | ac8b40b8b12d4bf85bdd6b7ab038f0605c8651d9 (diff) | |
download | nextcloud-server-2c8e7912f30df1d3f2d1be97eba52ebf3761cf26.tar.gz nextcloud-server-2c8e7912f30df1d3f2d1be97eba52ebf3761cf26.zip |
adapt testGetLoginCredentialsInvalidTokenLoginCredentials() unit test to uid != loginname
Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
-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(); |