Skip to content

Commit d90034b

Browse files
author
Lionel Elie Mamane
committed
adapt testGetLoginCredentialsInvalidTokenLoginCredentials() unit test to uid != loginname
Signed-off-by: Lionel Elie Mamane <[email protected]>
1 parent ee7f611 commit d90034b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/lib/Authentication/LoginCredentials/StoreTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public function testGetLoginCredentialsInvalidToken() {
142142
}
143143

144144
public function testGetLoginCredentialsInvalidTokenLoginCredentials() {
145-
$uid = 'user987';
145+
$uid = 'id987';
146+
$user = 'user987';
146147
$password = '7389374';
147148

148149
$this->session->expects($this->once())
@@ -159,8 +160,8 @@ public function testGetLoginCredentialsInvalidTokenLoginCredentials() {
159160
$this->session->expects($this->once())
160161
->method('get')
161162
->with($this->equalTo('login_credentials'))
162-
->willReturn('{"run":true,"uid":"user987","password":"7389374"}');
163-
$expected = new Credentials('user987', 'user987', '7389374');
163+
->willReturn('{"run":true,"uid":"id987","login_name":"user987","password":"7389374"}');
164+
$expected = new Credentials($uid, $user, $password);
164165

165166
$actual = $this->store->getLoginCredentials();
166167

0 commit comments

Comments
 (0)