. /** * 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; defined('MOODLE_INTERNAL') || die(); class fake_userkey_manager implements userkey_manager_interface { public function create_key($userid, $allowedips = null) { return 'FaKeKeyFoRtEsTiNg'; } public function delete_keys($userid) { // TODO: Implement delete_keys() method. } public function validate_key($keyvalue) { // TODO: Implement validate_key() method. } }