diff options
| author | Andy Chase <asperous2@gmail.com> | 2013-07-08 16:38:53 -0700 |
|---|---|---|
| committer | Andy Chase <asperous2@gmail.com> | 2013-07-08 16:38:53 -0700 |
| commit | f51721e905af68624df422889f92a069abd7b750 (patch) | |
| tree | 4647573583a29c6a5d6b86f7e4e93618b786595e /tests/mock/auth_provider.php | |
| parent | cd1fe789d243e12330a049799818ed7b062ea347 (diff) | |
| download | forums-f51721e905af68624df422889f92a069abd7b750.tar forums-f51721e905af68624df422889f92a069abd7b750.tar.gz forums-f51721e905af68624df422889f92a069abd7b750.tar.bz2 forums-f51721e905af68624df422889f92a069abd7b750.tar.xz forums-f51721e905af68624df422889f92a069abd7b750.zip | |
[ticket/11620] Rename provider -> mock_auth_provider
Rename the class and file name to better match
what the class is mocking, as well as implement the
interface of that class.
PHPBB3-11620
Diffstat (limited to 'tests/mock/auth_provider.php')
| -rw-r--r-- | tests/mock/auth_provider.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/mock/auth_provider.php b/tests/mock/auth_provider.php new file mode 100644 index 0000000000..cca7865fa2 --- /dev/null +++ b/tests/mock/auth_provider.php @@ -0,0 +1,53 @@ +<?php +/** + * + * @package testing + * @copyright (c) 2013 phpBB Group + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 + * + */ + +/** + * Mock provider class with basic functions to help test + * sessions. + * + * See interface here: + * includes/auth/provider/interface.php + */ +class phpbb_mock_auth_provider implements phpbb_auth_provider_interface +{ + + function init() + { + return null; + } + + function login($username, $password) + { + return array( + 'status' => "", + 'error_msg' => "", + 'user_row' => "", + ); + } + + function autologin() + { + return array(); + } + + function acp($new) + { + return array(); + } + + function logout($data, $new_session) + { + return null; + } + + function validate_session($user) + { + return null; + } +} |
