aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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;
}
}