MDL-75716 phpunit: Move tests to use correct names and ns (take#5)
commit81f05b3239bcc2a5647bf81cfa8a405e3fced755
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 11 Sep 2022 17:34:26 +0000 (11 19:34 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 12 Sep 2022 17:29:34 +0000 (12 19:29 +0200)
tree532d8f091fe60b5a489e1a565ded2701bb6d7be7
parentc6211a68b4f43754a9d593d5cf3f33f42c118c21
MDL-75716 phpunit: Move tests to use correct names and ns (take#5)

Applied the following changes to various testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- 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:

- In lib/tests/blocklib_test.php 2 helper classes have been
  moved to tests/fixtures, because they needed to be namespace-free.
39 files changed:
lib/tests/blocklib_test.php
lib/tests/fixtures/block_ablocktype.php [new file with mode: 0644]
lib/tests/fixtures/testable_block_manager.php [new file with mode: 0644]
lib/tests/moodlelib_test.php
lib/tests/oauth2_test.php
lib/tests/questionlib_test.php
lib/tests/weblib_format_text_test.php
lib/tests/xhprof_test.php
lib/tests/xhtml_container_stack_test.php
lib/tests/xmlize_test.php
mod/quiz/accessrule/seb/tests/access_manager_test.php
mod/quiz/accessrule/seb/tests/backup_restore_test.php
mod/quiz/accessrule/seb/tests/config_key_test.php
mod/quiz/accessrule/seb/tests/hideif_rule_test.php
mod/quiz/accessrule/seb/tests/link_generator_test.php
mod/quiz/accessrule/seb/tests/property_list_test.php
mod/quiz/accessrule/seb/tests/quiz_settings_test.php
mod/quiz/accessrule/seb/tests/settings_provider_test.php
mod/quiz/accessrule/seb/tests/template_test.php
mod/quiz/report/overview/tests/report_test.php
mod/quiz/report/responses/tests/responses_from_steps_walkthrough_test.php
mod/quiz/report/statistics/tests/statistics_table_test.php
mod/quiz/report/statistics/tests/statistics_test.php
mod/quiz/report/statistics/tests/stats_from_steps_walkthrough_test.php
mod/quiz/tests/attempt_test.php
mod/quiz/tests/attempt_walkthrough_from_csv_test.php
mod/quiz/tests/attempt_walkthrough_test.php
mod/quiz/tests/attempts_test.php
mod/quiz/tests/calendar_event_modified_test.php
mod/quiz/tests/local_structure_slot_random_test.php
mod/quiz/tests/privacy_legacy_quizaccess_polyfill_test.php
mod/quiz/tests/quiz_question_bank_view_test.php
mod/quiz/tests/quizdisplayoptions_test.php
mod/quiz/tests/quizobj_test.php
mod/quiz/tests/repaginate_test.php
mod/quiz/tests/reportlib_test.php
mod/quiz/tests/restore_override_test.php
mod/quiz/tests/structure_test.php
mod/quiz/tests/tags_test.php