|
|
|
@ -420,7 +420,7 @@ class ManagerTest extends TestCase { |
|
|
|
->willReturn(42); |
|
|
|
$this->config->expects($this->once()) |
|
|
|
->method('deleteUserValue') |
|
|
|
->with('jos', 'login_token_2fa', 42); |
|
|
|
->with('jos', 'login_token_2fa', '42'); |
|
|
|
|
|
|
|
$result = $this->manager->verifyChallenge('email', $this->user, $challenge); |
|
|
|
|
|
|
|
@ -515,7 +515,7 @@ class ManagerTest extends TestCase { |
|
|
|
$this->config->method('getUserKeys') |
|
|
|
->with('user', 'login_token_2fa') |
|
|
|
->willReturn([ |
|
|
|
42 |
|
|
|
'42' |
|
|
|
]); |
|
|
|
|
|
|
|
$manager = $this->getMockBuilder(Manager::class) |
|
|
|
@ -588,7 +588,7 @@ class ManagerTest extends TestCase { |
|
|
|
->willReturn(1337); |
|
|
|
|
|
|
|
$this->config->method('setUserValue') |
|
|
|
->with('ferdinand', 'login_token_2fa', 42, 1337); |
|
|
|
->with('ferdinand', 'login_token_2fa', '42', '1337'); |
|
|
|
|
|
|
|
|
|
|
|
$this->manager->prepareTwoFactorLogin($this->user, true); |
|
|
|
@ -618,7 +618,7 @@ class ManagerTest extends TestCase { |
|
|
|
->willReturn(1337); |
|
|
|
|
|
|
|
$this->config->method('setUserValue') |
|
|
|
->with('ferdinand', 'login_token_2fa', 42, 1337); |
|
|
|
->with('ferdinand', 'login_token_2fa', '42', '1337'); |
|
|
|
|
|
|
|
$this->manager->prepareTwoFactorLogin($this->user, false); |
|
|
|
} |
|
|
|
@ -666,7 +666,7 @@ class ManagerTest extends TestCase { |
|
|
|
$this->config->method('getUserKeys') |
|
|
|
->with('user', 'login_token_2fa') |
|
|
|
->willReturn([ |
|
|
|
42, 43, 44 |
|
|
|
'42', '43', '44' |
|
|
|
]); |
|
|
|
|
|
|
|
$this->session->expects($this->once()) |
|
|
|
|