-
Sub-task
-
Resolution: Fixed
-
Minor
-
3.11.4, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
This corresponds to the progress of point B of MDL-71049.
In this case, applied to all the occurrences of:
- lib_test (49)
- locallib_test (12)
Changes include:
- Add or fix namespaces to be correct component ones.
- Fixing incorrect use \xxx statements with leading backslash.
- Changing code to point to global scope when needed (when referencing to classes belonging to other components) or adding new use xxx statements (for classes corresponding to the same component).
- Change testcase class names to match file name (_test.
Goals:
- Verify that there aren't remaining files and classes to be processed.
- Verify that all the files can be run individually.
- Verify that complete runs continue passing ok.
- Apply the changes to both 311 (where PHPUnit was introduced) and master.
Notes:
- The changes should be 99.99% contained within phpunit /tests/ files. If something out from there is detected, it will be handled in separate commit, with justifications.
- has been marked as being related by
-
MDL-77608 Add namespace to H5P activity lib.php testcase
- Closed