diff --git a/tests/backup_hsuforum_activity_test.php b/tests/backup_hsuforum_activity_test.php index 13cc95f7..c18acf19 100644 --- a/tests/backup_hsuforum_activity_test.php +++ b/tests/backup_hsuforum_activity_test.php @@ -40,7 +40,7 @@ * @copyright 2016 Andrew Nicols * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_backup_hsuforum_activity_task_testcase extends advanced_testcase { +class backup_hsuforum_activity_test extends advanced_testcase { /** * Test the encoding of forum content links. diff --git a/tests/events_test.php b/tests/events_test.php index e6b533cc..caf6e776 100644 --- a/tests/events_test.php +++ b/tests/events_test.php @@ -33,7 +33,7 @@ * @copyright 2014 Dan Poltawski * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_events_testcase extends advanced_testcase { +class events_test extends advanced_testcase { /** * Tests set up. diff --git a/tests/externallib_test.php b/tests/externallib_test.php index 9a6a76e3..f03510e2 100644 --- a/tests/externallib_test.php +++ b/tests/externallib_test.php @@ -33,7 +33,7 @@ /** * @runTestsInSeparateProcesses */ -class mod_hsuforum_external_testcase extends externallib_advanced_testcase { +class externallib_test extends externallib_advanced_testcase { /** * Tests set up diff --git a/tests/form_service_test.php b/tests/form_service_test.php index f652cfe8..a1bbd895 100644 --- a/tests/form_service_test.php +++ b/tests/form_service_test.php @@ -13,7 +13,7 @@ // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - + /** * Testing form service prepare draft area * @@ -27,7 +27,7 @@ public function protected_file_prepare_draft_area(&$draftitemid, $contextid, $co } } -class mod_hsuforum_form_service_testcase extends advanced_testcase { +class form_service_test extends advanced_testcase { public function test_prepare_draft_area() { global $DB, $CFG, $USER; diff --git a/tests/generator_test.php b/tests/generator_test.php index b22ec6c8..7e587001 100644 --- a/tests/generator_test.php +++ b/tests/generator_test.php @@ -34,7 +34,7 @@ * @copyright 2012 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_generator_testcase extends advanced_testcase { +class generator_test extends advanced_testcase { public function test_generator() { global $DB; diff --git a/tests/generator_trait.php b/tests/generator_trait.php index 5eef51ae..db382ef2 100644 --- a/tests/generator_trait.php +++ b/tests/generator_trait.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -trait mod_hsuforum_tests_generator_trait { +trait generator_trait { /** * Helper to create the required number of users in the specified course. diff --git a/tests/grades_gradeitems_test.php b/tests/grades_gradeitems_test.php index b9cd21cb..e4e6abf3 100644 --- a/tests/grades_gradeitems_test.php +++ b/tests/grades_gradeitems_test.php @@ -39,7 +39,7 @@ * @copyright 2020 Open LMS * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class gradeitems_test extends advanced_testcase +class grades_gradeitems_test extends advanced_testcase { /** diff --git a/tests/helper.php b/tests/helper.php index cfd48e87..54c3852a 100644 --- a/tests/helper.php +++ b/tests/helper.php @@ -30,7 +30,7 @@ * * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -trait helper_hsuforums { +trait helper { /** * Helper to create the required number of users in the specified diff --git a/tests/lib_test.php b/tests/lib_test.php index 068790e2..d537c4a9 100644 --- a/tests/lib_test.php +++ b/tests/lib_test.php @@ -33,7 +33,7 @@ require_once($CFG->dirroot . '/mod/hsuforum/mod_form.php'); require_once($CFG->dirroot . '/course/modlib.php'); -class mod_hsuforum_lib_testcase extends advanced_testcase { +class lib_test extends advanced_testcase { public function test_hsuforum_trigger_content_uploaded_event() { $this->resetAfterTest(); diff --git a/tests/mail_test.php b/tests/mail_test.php index 33faf02a..f9b024c8 100644 --- a/tests/mail_test.php +++ b/tests/mail_test.php @@ -27,7 +27,7 @@ global $CFG; -class mod_hsuforum_mail_testcase extends advanced_testcase { +class mail_test extends advanced_testcase { protected $helper; diff --git a/tests/maildigest_test.php b/tests/maildigest_test.php index ca877e5f..ec7d4651 100644 --- a/tests/maildigest_test.php +++ b/tests/maildigest_test.php @@ -28,7 +28,7 @@ global $CFG; -class mod_hsuforum_maildigest_testcase extends advanced_testcase { +class maildigest_test extends advanced_testcase { /** * Keep track of the message and mail sinks that we set up for each diff --git a/tests/output_email_test.php b/tests/output_email_test.php index ee90b0cd..1f18a0c1 100644 --- a/tests/output_email_test.php +++ b/tests/output_email_test.php @@ -30,7 +30,7 @@ * @copyright 2016 Andrew Nicols * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_output_email_testcase extends advanced_testcase { +class output_email_test extends advanced_testcase { /** * Data provider for the postdate function tests. */ diff --git a/tests/portfolio_caller_test.php b/tests/portfolio_caller_test.php index f3eb52c1..93452383 100644 --- a/tests/portfolio_caller_test.php +++ b/tests/portfolio_caller_test.php @@ -30,7 +30,7 @@ * * Tests behaviour of the hsuforum_portfolio_caller class. */ -class mod_hsuforum_portfolio_caller_testcase extends advanced_testcase { +class portfolio_caller_test extends advanced_testcase { /** * Ensure that a file will be loaded in an instance of the caller when supplied valid and diff --git a/tests/privacy_provider_test.php b/tests/privacy_provider_test.php index a79303c7..aad50ad5 100644 --- a/tests/privacy_provider_test.php +++ b/tests/privacy_provider_test.php @@ -36,7 +36,7 @@ * @copyright 2018 Andrew Nicols * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_privacy_provider_testcase extends \core_privacy\tests\provider_testcase { +class privacy_provider_test extends \core_privacy\tests\provider_testcase { // Include the privacy helper trait. use \mod_hsuforum\privacy\subcontext_info; diff --git a/tests/restore_date_test.php b/tests/restore_date_test.php index 2e73760d..c3ad4c47 100644 --- a/tests/restore_date_test.php +++ b/tests/restore_date_test.php @@ -35,7 +35,7 @@ * @copyright 2017 onwards Ankit Agarwal * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_restore_date_testcase extends restore_date_testcase { +class restore_date_test extends restore_date_testcase { /** * Test restore dates. diff --git a/tests/rsslib_test.php b/tests/rsslib_test.php index eaf455fc..9a2a0076 100644 --- a/tests/rsslib_test.php +++ b/tests/rsslib_test.php @@ -37,7 +37,7 @@ * @copyright 2018 Andrew Nicols * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_rsslib_testcase extends advanced_testcase { +class rsslib_test extends advanced_testcase { // Include the mod_hsuforum test helpers. // This includes functions to create forums, users, discussions, and posts. use helper_hsuforums; diff --git a/tests/search_test.php b/tests/search_test.php index 6e0baec2..71f8332d 100644 --- a/tests/search_test.php +++ b/tests/search_test.php @@ -38,7 +38,7 @@ * @copyright 2015 David Monllao {@link http://www.davidmonllao.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_search_testcase extends advanced_testcase { +class search_test extends advanced_testcase { /** * @var string Area id diff --git a/tests/user_autosubscription_test.php b/tests/user_autosubscription_test.php index 6a0f2786..b54c3dbc 100644 --- a/tests/user_autosubscription_test.php +++ b/tests/user_autosubscription_test.php @@ -30,7 +30,7 @@ * @copyright Copyright (c) 2018 Open LMS (https://www.openlms.net) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_hsuforum_user_autosubscription_testcase extends advanced_testcase { +class user_autosubscription_test extends advanced_testcase { public function test_hsuforum_optional_subscription() { global $DB;