From 9d59b407e76239a76053c8bf00ac5cf30984083d Mon Sep 17 00:00:00 2001 From: Stephen Hellauer Date: Tue, 1 May 2018 07:44:36 -0500 Subject: [PATCH] Test function check for correct confirmation --- tests/auth_plugin_test.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auth_plugin_test.php b/tests/auth_plugin_test.php index ccd81dc..5b20d6e 100644 --- a/tests/auth_plugin_test.php +++ b/tests/auth_plugin_test.php @@ -295,6 +295,7 @@ class auth_plugin_userkey_testcase extends advanced_testcase { $user->email = 'username@test.com'; $user->firstname = 'user'; $user->lastname = 'name'; + $user->confirmed = 1; $user->ip = '192.168.1.1'; $expected = $CFG->wwwroot . '/auth/userkey/login.php?key=FaKeKeyFoRtEsTiNg'; @@ -306,6 +307,7 @@ class auth_plugin_userkey_testcase extends advanced_testcase { $this->assertEquals($user->email, $userrecord->email); $this->assertEquals($user->firstname, $userrecord->firstname); $this->assertEquals($user->lastname, $userrecord->lastname); + $this->assertEquals($user->confirmed, $userrecord->confirmed); $this->assertEquals('userkey', $userrecord->auth); }