aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-08-27 19:36:19 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-08-27 19:36:19 -0400
commitd204cdeee0de5668961531c2db88c1b749c290ed (patch)
tree22ff44fb388a4d791943ce5cc916a17e4587d4b9 /tests/mock
parent44ddcf792f79a4456f8e223d34afb2f4473a391e (diff)
downloadforums-d204cdeee0de5668961531c2db88c1b749c290ed.tar
forums-d204cdeee0de5668961531c2db88c1b749c290ed.tar.gz
forums-d204cdeee0de5668961531c2db88c1b749c290ed.tar.bz2
forums-d204cdeee0de5668961531c2db88c1b749c290ed.tar.xz
forums-d204cdeee0de5668961531c2db88c1b749c290ed.zip
[ticket/11813] Change mock auth provider to implement base provider
PHPBB3-11813
Diffstat (limited to 'tests/mock')
-rw-r--r--tests/mock/auth_provider.php34
1 files changed, 2 insertions, 32 deletions
diff --git a/tests/mock/auth_provider.php b/tests/mock/auth_provider.php
index 9d002334d6..a576ef6b67 100644
--- a/tests/mock/auth_provider.php
+++ b/tests/mock/auth_provider.php
@@ -10,14 +10,9 @@
/**
* Mock auth provider class with basic functions to help test sessions.
*/
-class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
+class phpbb_mock_auth_provider extends phpbb_auth_provider_base
{
- function init()
- {
- return null;
- }
-
- function login($username, $password)
+ public function login($username, $password)
{
return array(
'status' => "",
@@ -25,29 +20,4 @@ class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
'user_row' => "",
);
}
-
- function autologin()
- {
- return array();
- }
-
- function acp()
- {
- return array();
- }
-
- function logout($data, $new_session)
- {
- return null;
- }
-
- function validate_session($user)
- {
- return null;
- }
-
- public function get_acp_template($new_config)
- {
- return null;
- }
}