Skip to content

Commit e449be8

Browse files
Sasha AnastasiNoemie Ariste
Sasha Anastasi
authored and
Noemie Ariste
committed
Replace deprecated testcase classes with core_phpunit
1 parent 24e017b commit e449be8

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

factor/email/tests/factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @copyright Catalyst IT
2626
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2727
*/
28-
class factor_test extends \advanced_testcase {
28+
class factor_test extends \core_phpunit\testcase {
2929

3030
/**
3131
* Provides to test_generate_email_ip_address_location test.

factor/grace/tests/factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @copyright Catalyst IT
2525
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2626
*/
27-
class factor_test extends \advanced_testcase {
27+
class factor_test extends \core_phpunit\testcase {
2828

2929
public function test_affecting_factors() {
3030
$this->resetAfterTest(true);

factor/token/tests/factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @copyright Catalyst IT
2626
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2727
*/
28-
class factor_test extends \advanced_testcase {
28+
class factor_test extends \core_phpunit\testcase {
2929

3030
public function setUp(): void {
3131
$this->resetAfterTest();

factor/totp/tests/factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @copyright Catalyst IT
3838
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3939
*/
40-
class factor_test extends \advanced_testcase {
40+
class factor_test extends \core_phpunit\testcase {
4141

4242
/**
4343
* Test code validation of the TOTP factor

tests/plugininfo_factor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @copyright Catalyst IT
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
25-
class plugininfo_factor_test extends advanced_testcase {
25+
class plugininfo_factor_test extends \core_phpunit\testcase {
2626

2727
public function test_get_next_user_factor() {
2828

tests/secret_manager_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @copyright Catalyst IT
2525
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2626
*/
27-
class secret_manager_test extends \advanced_testcase {
27+
class secret_manager_test extends \core_phpunit\testcase {
2828

2929
public function test_create_secret() {
3030
global $DB;

tests/tool_mfa_testcase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @copyright Catalyst IT
3232
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3333
*/
34-
abstract class tool_mfa_testcase extends \advanced_testcase {
34+
abstract class tool_mfa_testcase extends \core_phpunit\testcase {
3535

3636
/**
3737
* Sets the state of the factor, in particular the weight and whether it is enabled

0 commit comments

Comments
 (0)