Skip to content

Commit a04ae0a

Browse files
authored
Merge pull request #868 from aneno-m-e/fix-t19-tests
[T19] Replace deprecated testcase classes with core_phpunit
2 parents 43d803d + bf87ae6 commit a04ae0a

17 files changed

+17
-17
lines changed

tests/auth_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @copyright 2021 Moodle Pty Ltd <[email protected]>
2828
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2929
*/
30-
class auth_saml2_test extends \advanced_testcase {
30+
class auth_saml2_test extends \core_phpunit\testcase {
3131
/**
3232
* Set up
3333
*/

tests/autoloader_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @copyright 2018 Catalyst IT Australia {@link http://www.catalyst-au.net}
2727
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2828
*/
29-
class auth_saml2_autoloader_test extends advanced_testcase {
29+
class auth_saml2_autoloader_test extends \core_phpunit\testcase {
3030
public function test_it_loads_classes() {
3131
$classes = [
3232
\Psr\Log\LoggerInterface::class,

tests/form_regenerate_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @package auth_saml2
3131
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3232
*/
33-
class auth_saml2_form_regenerate_testcase extends advanced_testcase {
33+
class auth_saml2_form_regenerate_testcase extends \core_phpunit\testcase {
3434
public function test_regenerate_certificate_form() {
3535
global $CFG, $DB, $USER;
3636
$this->resetAfterTest();

tests/generator_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @copyright 2021 Moodle Pty Ltd <[email protected]>
2727
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2828
*/
29-
class generator_testcase extends \advanced_testcase {
29+
class generator_testcase extends \core_phpunit\testcase {
3030
/**
3131
* Set up
3232
*/

tests/group_rule_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @copyright Catalyst IT
3131
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3232
*/
33-
class auth_saml2_group_rule_test_testcase extends advanced_testcase {
33+
class auth_saml2_group_rule_test_testcase extends \core_phpunit\testcase {
3434

3535
/**
3636
* Test we can get list of rules from config string.

tests/locallib_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @copyright Brendan Heywood <[email protected]>
3535
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3636
*/
37-
class auth_saml2_locallib_testcase extends advanced_testcase {
37+
class auth_saml2_locallib_testcase extends \core_phpunit\testcase {
3838
/**
3939
* Regression test for Issue 132.
4040
*/

tests/metadata_fetcher_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @copyright Copyright (c) 2017 Blackboard Inc. (http://www.blackboard.com)
3232
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3333
*/
34-
class auth_saml2_metadata_fetcher_testcase extends advanced_testcase {
34+
class auth_saml2_metadata_fetcher_testcase extends \core_phpunit\testcase {
3535

3636
/** @var \Prophecy\Prophet */
3737
protected $prophet;

tests/metadata_parser_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @copyright Copyright (c) 2017 Blackboard Inc. (http://www.blackboard.com)
3232
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3333
*/
34-
class auth_saml2_metadata_parser_testcase extends basic_testcase {
34+
class auth_saml2_metadata_parser_testcase extends \core_phpunit\testcase {
3535

3636
public function test_parse_metadata() {
3737
$xml = file_get_contents(__DIR__ . '/fixtures/metadata.xml');

tests/metadata_refresh_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @copyright Copyright (c) 2017 Blackboard Inc. (http://www.blackboard.com)
3333
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3434
*/
35-
class auth_saml2_metadata_refresh_testcase extends advanced_testcase {
35+
class auth_saml2_metadata_refresh_testcase extends \core_phpunit\testcase {
3636

3737
/** @var \Prophecy\Prophet */
3838
protected $prophet;

tests/metadata_writer_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @copyright Copyright (c) 2017 Blackboard Inc. (http://www.blackboard.com)
3232
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3333
*/
34-
class auth_saml2_metadata_writer_testcase extends basic_testcase {
34+
class auth_saml2_metadata_writer_testcase extends \core_phpunit\testcase {
3535

3636
public function test_write_default_path() {
3737
global $CFG;

tests/redis_store_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @copyright Copyright (c) 2017 Blackboard Inc. (http://www.blackboard.com)
3232
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3333
*/
34-
class auth_saml2_redis_store_testcase extends advanced_testcase {
34+
class auth_saml2_redis_store_testcase extends \core_phpunit\testcase {
3535

3636
/**
3737
* @var null|\Redis

tests/saml2_sitedata_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @copyright 2018 Catalyst IT Australia {@link http://www.catalyst-au.net}
2727
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2828
*/
29-
class auth_saml2_sitedata_test extends advanced_testcase {
29+
class auth_saml2_sitedata_test extends \core_phpunit\testcase {
3030
public function test_it_creates_the_directory_if_it_does_not_exist() {
3131
global $CFG;
3232

tests/setting_idpmetadata_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @copyright 2018 Catalyst IT Australia {@link http://www.catalyst-au.net}
3030
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3131
*/
32-
class setting_idpmetadata_test extends advanced_testcase {
32+
class setting_idpmetadata_test extends \core_phpunit\testcase {
3333
/** @var setting_idpmetadata */
3434
private static $config;
3535

tests/simplesamlphp_upgrade_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @package auth_saml2
2929
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3030
*/
31-
class auth_saml2_simplesamlphp_upgrade_testcase extends advanced_testcase {
31+
class auth_saml2_simplesamlphp_upgrade_testcase extends \core_phpunit\testcase {
3232

3333
/**
3434
* Test to ensure that composer files are removed from compiled extlib/simplesamlphp.

tests/ssl_algorithm_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 auth_saml2_ssl_algorithms_test extends basic_testcase {
27+
class auth_saml2_ssl_algorithms_test extends \core_phpunit\testcase {
2828
public function test_default_saml_signature_algorithm_is_valid_saml_signature_algorithm() {
2929
$this->assertTrue(array_key_exists(ssl_algorithms::get_default_saml_signature_algorithm(),
3030
ssl_algorithms::get_valid_saml_signature_algorithms()));

tests/user_extractor_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @copyright 2021 Catalyst IT
3434
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3535
*/
36-
class auth_saml2_user_extractor_test extends advanced_testcase {
36+
class auth_saml2_user_extractor_test extends \core_phpunit\testcase {
3737

3838
/**
3939
* A helper function to create a custom profile field.

tests/user_fields_test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @copyright 2021 Catalyst IT
3434
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3535
*/
36-
class auth_saml2_user_fields_test extends advanced_testcase {
36+
class auth_saml2_user_fields_test extends \core_phpunit\testcase {
3737

3838
/**
3939
* A helper function to create a custom profile field.

0 commit comments

Comments
 (0)