MDL-73485 phpunit: externallib, generator and filter tescase names
commit9835d6920fa3272d5c0ae0930d09ae06db0274bb
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sat, 1 Jan 2022 11:48:29 +0000 (1 12:48 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 21 Jan 2022 18:48:30 +0000 (21 19:48 +0100)
tree4df706b4189615394f0d72fd036cd2df8229e2cd
parent1bd5d40c8f26067078c93dbe16cff4b088cd9906
MDL-73485 phpunit: externallib, generator and filter tescase names

All externallib_test, generator_test and filter_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under testing/tests:

1) The core_testing component doesn't exist.
2) But testing/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have testing_xxxx as prefix.

Finally, also modified calendar/tests/event/events_test.php because it uses
some renamed (core_calendar_externallib_testcase => \core_calendar\externallib_test)
classes.
85 files changed:
admin/tool/lp/tests/externallib_test.php
admin/tool/mobile/tests/externallib_test.php
admin/tool/monitor/tests/generator_test.php
admin/tool/policy/tests/externallib_test.php
admin/tool/templatelibrary/tests/externallib_test.php
backup/tests/externallib_test.php
blocks/online_users/tests/generator_test.php
blocks/recentlyaccesseditems/tests/externallib_test.php
blocks/tests/externallib_test.php
calendar/tests/event/events_test.php
calendar/tests/externallib_test.php
cohort/tests/externallib_test.php
comment/tests/externallib_test.php
competency/tests/generator_test.php
completion/tests/externallib_test.php
customfield/tests/generator_test.php
enrol/manual/tests/externallib_test.php
enrol/self/tests/externallib_test.php
enrol/tests/externallib_test.php
files/tests/externallib_test.php
filter/activitynames/tests/filter_test.php
filter/algebra/tests/filter_test.php
filter/data/tests/filter_test.php
filter/displayh5p/tests/filter_test.php
filter/emoticon/tests/filter_test.php
filter/glossary/tests/filter_test.php
filter/mathjaxloader/tests/filter_test.php
filter/mediaplugin/tests/filter_test.php
filter/multilang/tests/filter_test.php
filter/tex/tests/filter_test.php
filter/urltolink/tests/filter_test.php
grade/report/overview/tests/externallib_test.php
grade/report/user/tests/externallib_test.php
group/tests/externallib_test.php
lib/testing/tests/testing_generator_test.php [moved from lib/testing/tests/generator_test.php with 95% similarity]
lib/tests/externallib_test.php
message/output/airnotifier/tests/externallib_test.php
message/output/popup/tests/externallib_test.php
message/tests/externallib_test.php
mod/assign/tests/externallib_test.php
mod/book/tests/externallib_test.php
mod/book/tests/generator_test.php
mod/chat/tests/externallib_test.php
mod/chat/tests/generator_test.php
mod/choice/tests/externallib_test.php
mod/choice/tests/generator_test.php
mod/data/tests/externallib_test.php
mod/data/tests/generator_test.php
mod/feedback/tests/generator_test.php
mod/folder/tests/externallib_test.php
mod/folder/tests/generator_test.php
mod/forum/tests/externallib_test.php
mod/forum/tests/generator_test.php
mod/glossary/tests/generator_test.php
mod/h5pactivity/tests/generator_test.php
mod/imscp/tests/externallib_test.php
mod/imscp/tests/generator_test.php
mod/label/tests/externallib_test.php
mod/label/tests/generator_test.php
mod/lesson/tests/generator_test.php
mod/lti/tests/externallib_test.php
mod/lti/tests/generator_test.php
mod/page/tests/externallib_test.php
mod/page/tests/generator_test.php
mod/quiz/tests/generator_test.php
mod/resource/tests/externallib_test.php
mod/resource/tests/generator_test.php
mod/scorm/tests/externallib_test.php
mod/scorm/tests/generator_test.php
mod/survey/tests/externallib_test.php
mod/survey/tests/generator_test.php
mod/url/tests/externallib_test.php
mod/url/tests/generator_test.php
mod/wiki/tests/externallib_test.php
mod/wiki/tests/generator_test.php
mod/workshop/tests/generator_test.php
notes/tests/externallib_test.php
notes/tests/generator_test.php
question/tests/externallib_test.php
question/tests/generator_test.php
rating/tests/externallib_test.php
report/insights/tests/externallib_test.php
repository/tests/generator_test.php
user/tests/externallib_test.php
webservice/tests/externallib_test.php