aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-11-12 11:42:08 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-11-12 11:42:08 +0100
commit63022f3c59f01ac1456cde4e837c1431a6664691 (patch)
treecf869a686f6afac5edf03711caa6c1e1dbc541c6
parent91f7d53d8e1a03b72e436958bbe8decbb4972428 (diff)
downloadforums-63022f3c59f01ac1456cde4e837c1431a6664691.tar
forums-63022f3c59f01ac1456cde4e837c1431a6664691.tar.gz
forums-63022f3c59f01ac1456cde4e837c1431a6664691.tar.bz2
forums-63022f3c59f01ac1456cde4e837c1431a6664691.tar.xz
forums-63022f3c59f01ac1456cde4e837c1431a6664691.zip
[ticket/13332] Fix auth provider tests
PHPBB3-13332
-rw-r--r--tests/auth/provider_db_test.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auth/provider_db_test.php b/tests/auth/provider_db_test.php
index e33eae6b54..09ca0816bf 100644
--- a/tests/auth/provider_db_test.php
+++ b/tests/auth/provider_db_test.php
@@ -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');