mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11620] More mock provider methods
The mock provider object now better matches the interface given for providers. PHPBB3-11620
This commit is contained in:
parent
a1168972ff
commit
3999d7ec7c
1 changed files with 26 additions and 4 deletions
|
@ -10,21 +10,43 @@
|
||||||
/**
|
/**
|
||||||
* Mock provider class with basic functions to help test
|
* Mock provider class with basic functions to help test
|
||||||
* sessions.
|
* sessions.
|
||||||
|
*
|
||||||
|
* See interface here:
|
||||||
|
* includes/auth/provider/interface.php
|
||||||
*/
|
*/
|
||||||
class phpbb_provider {
|
class phpbb_provider {
|
||||||
|
|
||||||
|
function init()
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function login($username, $password)
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'status' => "",
|
||||||
|
'error_msg' => "",
|
||||||
|
'user_row' => "",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function autologin()
|
function autologin()
|
||||||
{
|
{
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
function kill()
|
function acp($new)
|
||||||
{
|
{
|
||||||
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
function validate_session($data)
|
function logout($data, $new_session)
|
||||||
{
|
{
|
||||||
return true;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function validate_session($user)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue