File tree 9 files changed +4
-21
lines changed
9 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace factor_email \tests ;
18
-
19
17
/**
20
18
* Tests for TOTP factor.
21
19
*
25
23
* @copyright Catalyst IT
26
24
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
25
*/
28
- class factor_test extends \core_phpunit \testcase {
26
+ class email_factor_test extends \core_phpunit \testcase {
29
27
30
28
/**
31
29
* Provides to test_generate_email_ip_address_location test.
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace factor_grace \tests ;
18
-
19
17
/**
20
18
* Tests for grace factor.
21
19
*
24
22
* @copyright Catalyst IT
25
23
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
24
*/
27
- class factor_test extends \core_phpunit \testcase {
25
+ class grace_factor_test extends \core_phpunit \testcase {
28
26
29
27
public function test_affecting_factors () {
30
28
$ this ->resetAfterTest (true );
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace factor_token \tests ;
18
-
19
17
/**
20
18
* Tests for MFA manager class.
21
19
*
25
23
* @copyright Catalyst IT
26
24
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
25
*/
28
- class factor_test extends \core_phpunit \testcase {
26
+ class token_factor_test extends \core_phpunit \testcase {
29
27
30
28
public function setUp (): void {
31
29
$ this ->resetAfterTest ();
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace factor_totp \tests ;
18
-
19
17
defined ('MOODLE_INTERNAL ' ) || die ();
20
18
21
19
require_once (__DIR__ .'/../extlib/OTPHP/OTPInterface.php ' );
37
35
* @copyright Catalyst IT
38
36
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
37
*/
40
- class factor_test extends \core_phpunit \testcase {
38
+ class totp_factor_test extends \core_phpunit \testcase {
41
39
42
40
/**
43
41
* Test code validation of the TOTP factor
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace tool_mfa \tests ;
18
-
19
17
defined ('MOODLE_INTERNAL ' ) || die ();
20
18
21
19
require_once (__DIR__ . '/tool_mfa_testcase.php ' );
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace tool_mfa \tests ;
18
-
19
17
defined ('MOODLE_INTERNAL ' ) || die ();
20
18
require_once (__DIR__ . '/tool_mfa_testcase.php ' );
21
19
Original file line number Diff line number Diff line change 13
13
//
14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
- namespace tool_mfa \tests ;
17
16
18
17
defined ('MOODLE_INTERNAL ' ) || die ();
19
18
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace tool_mfa \tests ;
18
-
19
17
/**
20
18
* Tests for MFA secret manager class.
21
19
*
Original file line number Diff line number Diff line change 14
14
// You should have received a copy of the GNU General Public License
15
15
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
16
17
- namespace tool_mfa \tests ;
18
-
19
17
defined ('MOODLE_INTERNAL ' ) || die ();
20
18
21
19
global $ CFG ;
You can’t perform that action at this time.
0 commit comments