1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/13332] Fix auth provider tests

PHPBB3-13332
This commit is contained in:
Marc Alexander 2014-11-12 11:42:08 +01:00
parent 91f7d53d8e
commit 63022f3c59

View File

@ -78,7 +78,14 @@ class phpbb_auth_provider_db_test extends phpbb_database_test_case
),
);
$this->assertEquals($expected, $provider->login('foobar', 'example'));
$login_return = $provider->login('foobar', 'example');
$this->assertEquals($expected['status'], $login_return['status']);
$this->assertEquals($expected['error_msg'], $login_return['error_msg']);
foreach ($expected['user_row'] as $key => $value)
{
$this->assertEquals($value, $login_return['user_row'][$key]);
}
// Check if convert works
$login_return = $provider->login('foobar2', 'example');