adapt testGetLoginCredentialsInvalidTokenLoginCredentials() unit test to uid != loginname

Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
pull/21288/head
Lionel Elie Mamane 6 years ago committed by Morris Jobke
parent ac8b40b8b1
commit 2c8e7912f3
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 7
      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();

Loading…
Cancel
Save