Skip to content

Commit

Permalink
[ticket/11813] Change mock auth provider to implement base provider
Browse files Browse the repository at this point in the history
PHPBB3-11813
  • Loading branch information
Hardolaf committed Aug 27, 2013
1 parent 44ddcf7 commit d204cde
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions tests/mock/auth_provider.php
Expand Up @@ -10,44 +10,14 @@
/**
* 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' => "",
'error_msg' => "",
'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;
}
}

0 comments on commit d204cde

Please sign in to comment.