-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.6, 3.7, 3.8, 4.1.11, 4.2.8, 4.3.5, 4.4.1, 4.5
With MDLSITE-4800 decided now we can start using namespaces within **/tests directories in an organized way
There are various stuff that can be found there:
- phpunit test cases.
- generators.
- fixtures.
- behat steps
- ...
Given the agreement about namespaces... maybe we should consider to make the proper APIs, so they can be used as level2 namespace (\mod_forum\generator\...).
Alternative (not needing them being APIs) would be to move the to 3rd level, under local, where we have freedom. (\mod_forum\local\generators)
And also, there is the already existing "tests" API, so we can use it too (\mod_forum\tests\generator).
Note it's not mandatory to move all them to namespaces, neither implement their autoloading. But we need to provide/allow the details the agreement defines.
So this is about consider which alternative we follow and how we provide autoloading for them. Importantly... test cases themselves don't need autoloading (phpunit's finder finds them no matter the namespace).
Ciao
- blocks
-
MDL-82400 Move manually defined testcases to autoloader
- Open
- has a non-specific relationship to
-
MDL-73349 Review privacy/classes/tests classes
- Open
-
MDLSITE-6370 Inconsistences in "test" vs "tests" core API / subsystem
- Open
- has been marked as being related by
-
MDL-80855 Restructure tests directories for PHPUnit tests
- Open
-
MDL-73004 tool_brickfield unit tests fail if you install qtype_coderunner
- Closed
-
MDL-71096 All APIs should be listed in code
- Closed