From cf8c88aefc6b5c97ec125e085b548cd58dcab477 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Tue, 6 Jul 2021 12:51:47 +1000 Subject: [PATCH] Rename test classes to fix #253 --- tests/phpunit/calendar/calendar_test.php | 2 +- tests/phpunit/dml/outagedb_test.php | 2 +- tests/phpunit/event/events_test.php | 2 +- tests/phpunit/form/forms_test.php | 2 +- tests/phpunit/installation_test.php | 2 +- tests/phpunit/lib_test.php | 2 +- tests/phpunit/local/cli/cli_test.php | 2 +- tests/phpunit/local/cli/create_test.php | 2 +- tests/phpunit/local/cli/finish_test.php | 2 +- tests/phpunit/local/cli/waitforit_test.php | 2 +- tests/phpunit/local/controllers/infopage_test.php | 2 +- .../phpunit/local/controllers/maintenance_static_page_test.php | 2 +- tests/phpunit/local/outage_test.php | 2 +- tests/phpunit/local/outagelib_test.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/phpunit/calendar/calendar_test.php b/tests/phpunit/calendar/calendar_test.php index 0a94327..b72dd9b 100644 --- a/tests/phpunit/calendar/calendar_test.php +++ b/tests/phpunit/calendar/calendar_test.php @@ -39,7 +39,7 @@ defined('MOODLE_INTERNAL') || die(); * @copyright Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class calendar_test extends advanced_testcase { +class auth_outage_calendar_test extends advanced_testcase { /** * @var outage|null The calendar entry owner. */ diff --git a/tests/phpunit/dml/outagedb_test.php b/tests/phpunit/dml/outagedb_test.php index e10eb08..33745e2 100644 --- a/tests/phpunit/dml/outagedb_test.php +++ b/tests/phpunit/dml/outagedb_test.php @@ -37,7 +37,7 @@ require_once(__DIR__.'/../base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class outagedb_test extends auth_outage_base_testcase { +class auth_outage_outagedb_test extends auth_outage_base_testcase { /** * Creates an array of ids in from the given outages array. * @param outage[] $outages An array of outages. diff --git a/tests/phpunit/event/events_test.php b/tests/phpunit/event/events_test.php index e0e902f..e1ee294 100644 --- a/tests/phpunit/event/events_test.php +++ b/tests/phpunit/event/events_test.php @@ -39,7 +39,7 @@ defined('MOODLE_INTERNAL') || die(); * @copyright Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class events_test extends advanced_testcase { +class auth_outage_events_test extends advanced_testcase { /** * @var outage|null Outage used in the tests. */ diff --git a/tests/phpunit/form/forms_test.php b/tests/phpunit/form/forms_test.php index 58e7102..183ef5e 100644 --- a/tests/phpunit/form/forms_test.php +++ b/tests/phpunit/form/forms_test.php @@ -39,7 +39,7 @@ require_once(__DIR__.'/../base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class forms_test extends auth_outage_base_testcase { +class auth_outage_forms_test extends auth_outage_base_testcase { /** * Create a delete form. */ diff --git a/tests/phpunit/installation_test.php b/tests/phpunit/installation_test.php index 49ed6b0..1c5936b 100644 --- a/tests/phpunit/installation_test.php +++ b/tests/phpunit/installation_test.php @@ -40,7 +40,7 @@ require_once(__DIR__.'/base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class installation_test extends auth_outage_base_testcase { +class auth_outage_installation_test extends auth_outage_base_testcase { /** * Checks if plugin cleans up data after uninstall. * diff --git a/tests/phpunit/lib_test.php b/tests/phpunit/lib_test.php index 6c276e0..757cd63 100644 --- a/tests/phpunit/lib_test.php +++ b/tests/phpunit/lib_test.php @@ -35,7 +35,7 @@ require_once(__DIR__.'/../../lib.php'); * @copyright 2017 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class lib_test extends auth_outage_base_testcase { +class auth_outage_lib_test extends auth_outage_base_testcase { /** * Test this plugin gets climaintenance resource file. */ diff --git a/tests/phpunit/local/cli/cli_test.php b/tests/phpunit/local/cli/cli_test.php index 4cab5c6..b019b21 100644 --- a/tests/phpunit/local/cli/cli_test.php +++ b/tests/phpunit/local/cli/cli_test.php @@ -37,7 +37,7 @@ require_once(__DIR__.'/cli_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class cli_test extends auth_outage_cli_testcase { +class auth_outage_cli_test extends auth_outage_cli_testcase { /** * Tests providing an unknown parameter. */ diff --git a/tests/phpunit/local/cli/create_test.php b/tests/phpunit/local/cli/create_test.php index e944bce..b293c97 100644 --- a/tests/phpunit/local/cli/create_test.php +++ b/tests/phpunit/local/cli/create_test.php @@ -39,7 +39,7 @@ require_once(__DIR__.'/cli_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class create_test extends auth_outage_cli_testcase { +class auth_outage_create_test extends auth_outage_cli_testcase { /** * Tests without any arguments. */ diff --git a/tests/phpunit/local/cli/finish_test.php b/tests/phpunit/local/cli/finish_test.php index a2c290d..c1ff7fd 100644 --- a/tests/phpunit/local/cli/finish_test.php +++ b/tests/phpunit/local/cli/finish_test.php @@ -39,7 +39,7 @@ require_once(__DIR__.'/cli_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class finish_test extends auth_outage_cli_testcase { +class auth_outage_finish_test extends auth_outage_cli_testcase { /** * Tests the constructor. */ diff --git a/tests/phpunit/local/cli/waitforit_test.php b/tests/phpunit/local/cli/waitforit_test.php index 9b0d93c..a2e8031 100644 --- a/tests/phpunit/local/cli/waitforit_test.php +++ b/tests/phpunit/local/cli/waitforit_test.php @@ -39,7 +39,7 @@ require_once(__DIR__.'/cli_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class waitforit_test extends auth_outage_cli_testcase { +class auth_outage_waitforit_test extends auth_outage_cli_testcase { /** * Tests the constructor. */ diff --git a/tests/phpunit/local/controllers/infopage_test.php b/tests/phpunit/local/controllers/infopage_test.php index 881320f..e7a8334 100644 --- a/tests/phpunit/local/controllers/infopage_test.php +++ b/tests/phpunit/local/controllers/infopage_test.php @@ -37,7 +37,7 @@ require_once(__DIR__.'/../../base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class infopagecontroller_test extends auth_outage_base_testcase { +class auth_outage_infopagecontroller_test extends auth_outage_base_testcase { /** * Tests the constructor. */ diff --git a/tests/phpunit/local/controllers/maintenance_static_page_test.php b/tests/phpunit/local/controllers/maintenance_static_page_test.php index e9c8126..267068c 100644 --- a/tests/phpunit/local/controllers/maintenance_static_page_test.php +++ b/tests/phpunit/local/controllers/maintenance_static_page_test.php @@ -39,7 +39,7 @@ require_once(__DIR__.'/../../base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class maintenance_static_page_test extends auth_outage_base_testcase { +class auth_outage_maintenance_static_page_test extends auth_outage_base_testcase { /** * Test template file. */ diff --git a/tests/phpunit/local/outage_test.php b/tests/phpunit/local/outage_test.php index de3da63..d31f462 100644 --- a/tests/phpunit/local/outage_test.php +++ b/tests/phpunit/local/outage_test.php @@ -36,7 +36,7 @@ require_once(__DIR__.'/../base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class outage_test extends auth_outage_base_testcase { +class auth_outage_outage_test extends auth_outage_base_testcase { /** * Tests the constructor. */ diff --git a/tests/phpunit/local/outagelib_test.php b/tests/phpunit/local/outagelib_test.php index 5944b07..a950817 100644 --- a/tests/phpunit/local/outagelib_test.php +++ b/tests/phpunit/local/outagelib_test.php @@ -41,7 +41,7 @@ require_once(__DIR__.'/../base_testcase.php'); * @copyright 2016 Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class outagelib_test extends auth_outage_base_testcase { +class auth_outage_outagelib_test extends auth_outage_base_testcase { /** * Check if maintenance message is disabled as needed. */