aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndy Chase <asperous2@gmail.com>2013-07-08 10:28:40 -0700
committerAndy Chase <asperous2@gmail.com>2013-07-08 10:28:40 -0700
commit3999d7ec7cc0860d3f955db9088558f92d1ba497 (patch)
treeef80b4033e3f1c916da367833414a2c71b94e911 /tests
parenta1168972ff4d6e5957da08c22437244c92f9696e (diff)
downloadforums-3999d7ec7cc0860d3f955db9088558f92d1ba497.tar
forums-3999d7ec7cc0860d3f955db9088558f92d1ba497.tar.gz
forums-3999d7ec7cc0860d3f955db9088558f92d1ba497.tar.bz2
forums-3999d7ec7cc0860d3f955db9088558f92d1ba497.tar.xz
forums-3999d7ec7cc0860d3f955db9088558f92d1ba497.zip
[ticket/11620] More mock provider methods
The mock provider object now better matches the interface given for providers. PHPBB3-11620
Diffstat (limited to 'tests')
-rw-r--r--tests/mock/provider.php28
1 files changed, 25 insertions, 3 deletions
diff --git a/tests/mock/provider.php b/tests/mock/provider.php
index 1e7b4bc4ba..4d0d6fc84c 100644
--- a/tests/mock/provider.php
+++ b/tests/mock/provider.php
@@ -10,21 +10,43 @@
/**
* Mock provider class with basic functions to help test
* sessions.
+ *
+ * See interface here:
+ * includes/auth/provider/interface.php
*/
class phpbb_provider {
+ function init()
+ {
+ return null;
+ }
+
+ function login($username, $password)
+ {
+ return array(
+ 'status' => "",
+ 'error_msg' => "",
+ 'user_row' => "",
+ );
+ }
+
function autologin()
{
return array();
}
- function kill()
+ function acp($new)
{
+ return array();
+ }
+ function logout($data, $new_session)
+ {
+ return null;
}
- function validate_session($data)
+ function validate_session($user)
{
- return true;
+ return null;
}
}