diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-06-25 13:22:56 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-06-25 13:23:57 -0400 |
commit | 8e1a503f4437eb38de6a349a841db75648a81678 (patch) | |
tree | 84f34b934c19508e4df4f585ee40e341668a8425 /tests/auth/provider_db_test.php | |
parent | 80e2d65399e7dcf9b53dada4929d7194275721ad (diff) | |
download | forums-8e1a503f4437eb38de6a349a841db75648a81678.tar forums-8e1a503f4437eb38de6a349a841db75648a81678.tar.gz forums-8e1a503f4437eb38de6a349a841db75648a81678.tar.bz2 forums-8e1a503f4437eb38de6a349a841db75648a81678.tar.xz forums-8e1a503f4437eb38de6a349a841db75648a81678.zip |
[feature/auth-refactor] Finish provider_db unit test for login
Finishes the provider_db unit test for login. The test currently
passes.
PHPBB3-9734
Diffstat (limited to 'tests/auth/provider_db_test.php')
-rw-r--r-- | tests/auth/provider_db_test.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/auth/provider_db_test.php b/tests/auth/provider_db_test.php index c6355ae7f9..d876683f84 100644 --- a/tests/auth/provider_db_test.php +++ b/tests/auth/provider_db_test.php @@ -33,8 +33,18 @@ class phpbb_auth_provider_db_test extends phpbb_database_test_case $expected = array( 'status' => LOGIN_SUCCESS, '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')); } } |