From 0f691154882049894006c2d4648b39e24a9dcba6 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Wed, 17 Aug 2016 15:45:47 +1000 Subject: [PATCH] Add fake userkey manager for testing --- tests/fake_userkey_manager.php | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/fake_userkey_manager.php diff --git a/tests/fake_userkey_manager.php b/tests/fake_userkey_manager.php new file mode 100644 index 0000000..edd235e --- /dev/null +++ b/tests/fake_userkey_manager.php @@ -0,0 +1,37 @@ +. + +/** + * Fake userkey manager for testing. + * + * @package auth_userkey + * @copyright 2016 Dmitrii Metelkin (dmitriim@catalyst-au.net) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +namespace auth_userkey; + + +class fake_userkey_manager implements userkey_manager_interface { + + public function create_key() { + return 'FaKeKeyFoRtEsTiNg'; + } + + public function delete_key() { + + } +} \ No newline at end of file