Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
ee8c617a6d
commit
b8d41752ca
|
@ -126,9 +126,11 @@ class TwoFactorChallengeControllerTest extends TestCase {
|
||||||
->method('exists')
|
->method('exists')
|
||||||
->with('two_factor_auth_error')
|
->with('two_factor_auth_error')
|
||||||
->will($this->returnValue(true));
|
->will($this->returnValue(true));
|
||||||
$this->session->expects($this->once())
|
$this->session->expects($this->exactly(2))
|
||||||
->method('remove')
|
->method('remove')
|
||||||
->with('two_factor_auth_error');
|
->with($this->logicalOr(
|
||||||
|
$this->equalTo('two_factor_auth_error'),
|
||||||
|
$this->equalTo('two_factor_auth_error_message')));
|
||||||
$provider->expects($this->once())
|
$provider->expects($this->once())
|
||||||
->method('getTemplate')
|
->method('getTemplate')
|
||||||
->with($user)
|
->with($user)
|
||||||
|
@ -144,6 +146,7 @@ class TwoFactorChallengeControllerTest extends TestCase {
|
||||||
'logout_attribute' => 'logoutAttribute',
|
'logout_attribute' => 'logoutAttribute',
|
||||||
'template' => '<html/>',
|
'template' => '<html/>',
|
||||||
'redirect_url' => '/re/dir/ect/url',
|
'redirect_url' => '/re/dir/ect/url',
|
||||||
|
'error_message' => null,
|
||||||
], 'guest');
|
], 'guest');
|
||||||
|
|
||||||
$this->assertEquals($expected, $this->controller->showChallenge('myprovider', '/re/dir/ect/url'));
|
$this->assertEquals($expected, $this->controller->showChallenge('myprovider', '/re/dir/ect/url'));
|
||||||
|
|
Loading…
Reference in New Issue