-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.11, 3.10.8, 3.11.4, 4.0, 4.1
-
None
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
Detected while working on MDL-73348
There are a few files under privacy/classes/tests:
- provider_testcase.php
- requests
- approved_contextlist.php
- content_writer.php
- "tests" is a wrong level2 namespace (it should be "test" - API name)
- "provider_testcase.php" should be somewhere under privacy/tests maybe fixtures.
I imagine that those files were put there originally because of, that way, being autoloaded, because they are extensively used by all the provider / privacy testcases in Moodle.
So, surely, it's tricky to move them out from autoloaded space and we'll have to wait for autoloading to work under "tests/" directories to get them moved.
So, just registering the found problem here. I've been searching for some issue in the Tracker about the "tests/" autoloading, but haven't found any, so far.
- Discovered while testing
-
MDL-73348 Fix namespace and class names for privacy / privacy_provider cases
-
- Closed
-
- has a non-specific relationship to
-
MDL-61931 Privacy API tests case classes inconsistent naming
-
- Closed
-
- has been marked as being related by
-
MDL-66903 Support autoloading of test classes
-
- Closed
-