File tree 10 files changed +7
-24
lines changed
10 files changed +7
-24
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 \advanced_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 \advanced_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 \advanced_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 \advanced_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 22
22
* @copyright Catalyst IT
23
23
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
24
*/
25
- class plugininfo_factor_test extends advanced_testcase {
25
+ class plugininfo_factor_test extends \ core_phpunit \testcase {
26
26
27
27
public function test_get_next_user_factor () {
28
28
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
*
24
22
* @copyright Catalyst IT
25
23
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
24
*/
27
- class secret_manager_test extends \advanced_testcase {
25
+ class secret_manager_test extends \core_phpunit \testcase {
28
26
29
27
public function test_create_secret () {
30
28
global $ DB ;
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 ;
31
29
* @copyright Catalyst IT
32
30
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
31
*/
34
- abstract class tool_mfa_testcase extends \advanced_testcase {
32
+ abstract class tool_mfa_testcase extends \core_phpunit \testcase {
35
33
36
34
/**
37
35
* Sets the state of the factor, in particular the weight and whether it is enabled
You can’t perform that action at this time.
0 commit comments