Skip to content

Fix class naming inconsistency in tests files #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/backup_hsuforum_activity_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @copyright 2016 Andrew Nicols <andrew@nicols.co.uk>
* @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.
Expand Down
2 changes: 1 addition & 1 deletion tests/events_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright 2014 Dan Poltawski <dan@moodle.com>
* @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.
Expand Down
2 changes: 1 addition & 1 deletion tests/externallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* @runTestsInSeparateProcesses
*/
class mod_hsuforum_external_testcase extends externallib_advanced_testcase {
class externallib_test extends externallib_advanced_testcase {

/**
* Tests set up
Expand Down
4 changes: 2 additions & 2 deletions tests/form_service_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Testing form service prepare draft area
*
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/generator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/generator_trait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/grades_gradeitems_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/lib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/mail_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

global $CFG;

class mod_hsuforum_mail_testcase extends advanced_testcase {
class mail_test extends advanced_testcase {

protected $helper;

Expand Down
2 changes: 1 addition & 1 deletion tests/maildigest_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/output_email_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright 2016 Andrew Nicols <andrew@nicols.co.uk>
* @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.
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/portfolio_caller_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/privacy_provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @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;
Expand Down
2 changes: 1 addition & 1 deletion tests/restore_date_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @copyright 2017 onwards Ankit Agarwal <ankit.agrr@gmail.com>
* @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.
Expand Down
2 changes: 1 addition & 1 deletion tests/rsslib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @copyright 2018 Andrew Nicols <andrew@nicols.co.uk>
* @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;
Expand Down
2 changes: 1 addition & 1 deletion tests/search_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/user_autosubscription_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down