-
Sub-task
-
Resolution: Fixed
-
Critical
-
4.2.9, 4.1.12, 4.3.6, 4.4.2, 4.5
It has been detected that we have a few (3-4) cases where the same class has multiple @coversDefaultClass declarations.
That's wrong, and leads to PHPUnit with code coverage to stop with error.
That annotation is only a shortcut/default to be applied to any test covering methods and to avoid to type the FQN class name all the time. Just that.
So this issue is about to review those cases, changing them to use the required @covers annotations and only leaving one (or zero) @coversDefaultClass uses on each test.
Related, https://github.com/moodlehq/moodle-cs/issues/166 has been created to detect this problem in the future from moodle-cs.
- will help resolve
-
MDL-77093 Broken coverage for mod_quiz and questionbank
-
- Reopened
-