MDL-73278 phpunit: Rename already namespaced classes to match file name
These are the only cases 100% safe to apply the renaming of the testcase class names to match the file names. All other cases are not safe, because they are missing namespace and may enter into name conflicts. Adding namespaces is not as simple as imagined because it implies to, also, add a good number of modifications to core. See the issue for more details.
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ require_once($CFG->dirroot . '/webservice/tests/helpers.php');
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class post_statement_testcase extends externallib_advanced_testcase {
|
||||
class post_statement_test extends externallib_advanced_testcase {
|
||||
|
||||
/** @var test_helper for generating valid xapi statements. */
|
||||
private $testhelper;
|
||||
|
||||
@@ -42,7 +42,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class handler_testcase extends advanced_testcase {
|
||||
class handler_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Setup to ensure that fixtures are loaded.
|
||||
|
||||
@@ -35,7 +35,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class iri_testcase extends advanced_testcase {
|
||||
class iri_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Setup to ensure that fixtures are loaded.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_activity_testcase extends advanced_testcase {
|
||||
class item_activity_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_actor_testcase extends advanced_testcase {
|
||||
class item_actor_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation with agent.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_agent_testcase extends advanced_testcase {
|
||||
class item_agent_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -36,7 +36,7 @@ use core_xapi\xapi_exception;
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_attachment_testcase extends advanced_testcase {
|
||||
class item_attachment_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -35,7 +35,7 @@ use core_xapi\xapi_exception;
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_context_testcase extends advanced_testcase {
|
||||
class item_context_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_definition_testcase extends advanced_testcase {
|
||||
class item_definition_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item_definition creation.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_group_testcase extends advanced_testcase {
|
||||
class item_group_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_object_testcase extends advanced_testcase {
|
||||
class item_object_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation with agent.
|
||||
|
||||
@@ -35,7 +35,7 @@ use core_xapi\xapi_exception;
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_result_testcase extends advanced_testcase {
|
||||
class item_result_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -35,7 +35,7 @@ use core_xapi\xapi_exception;
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_score_testcase extends advanced_testcase {
|
||||
class item_score_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -37,7 +37,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_testcase extends advanced_testcase {
|
||||
class item_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -38,7 +38,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class item_verb_testcase extends advanced_testcase {
|
||||
class item_verb_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Test item creation.
|
||||
|
||||
@@ -49,7 +49,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2020 Ferran Recio
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class statement_testcase extends advanced_testcase {
|
||||
class statement_test extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* Returns a valid item for a specific attribute.
|
||||
|
||||
Reference in New Issue
Block a user