mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/auth-refactor] Finish provider_db unit test for login
Finishes the provider_db unit test for login. The test currently passes. PHPBB3-9734
This commit is contained in:
parent
80e2d65399
commit
8e1a503f44
1 changed files with 12 additions and 2 deletions
|
@ -33,8 +33,18 @@ class phpbb_auth_provider_db_test extends phpbb_database_test_case
|
||||||
$expected = array(
|
$expected = array(
|
||||||
'status' => LOGIN_SUCCESS,
|
'status' => LOGIN_SUCCESS,
|
||||||
'error_msg' => false,
|
'error_msg' => false,
|
||||||
'user_row' => '',
|
'user_row' => array(
|
||||||
|
'user_id' => '1',
|
||||||
|
'username' => 'foobar',
|
||||||
|
'user_password' => '$H$9E45lK6J8nLTSm9oJE5aNCSTFK9wqa/',
|
||||||
|
'user_passchg' => '0',
|
||||||
|
'user_pass_convert' => '0',
|
||||||
|
'user_email' => 'example@example.com',
|
||||||
|
'user_type' => '0',
|
||||||
|
'user_login_attempts' => '0',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
$this->assertEquals($expected, $provider->login('example', 'example'));
|
|
||||||
|
$this->assertEquals($expected, $provider->login('foobar', 'example'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue