mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-82207 phpunit: fix various @covers annotations (take#1)
This fixes various (not all) wrong @covers annotations that are reported as warnings by PHPUnit when it's run with code-coverage enabled. When possible, the preferred solution is to change to @covers at class level, that is the recommended way. If multiple classes are involved, then a mix of @coversDefaultClass and @covers at method level are used (always trying to use the minimum needed patch). This is the first of a series of issues created as sub-tasks of MDL-82142.
This commit is contained in:
parent
ad7fc69c25
commit
ad5fe71868
53 changed files with 75 additions and 128 deletions
|
@ -883,7 +883,7 @@ class lib_test extends \advanced_testcase {
|
|||
/**
|
||||
* Tests set_groups_messaging
|
||||
*
|
||||
* @covers \core_group::set_groups_messaging
|
||||
* @covers ::set_groups_messaging
|
||||
*/
|
||||
public function test_set_groups_messaging(): void {
|
||||
$this->resetAfterTest();
|
||||
|
@ -923,7 +923,7 @@ class lib_test extends \advanced_testcase {
|
|||
/**
|
||||
* Tests set group messaging where it doesn't exist
|
||||
*
|
||||
* @covers \core_group::set_groups_messaging
|
||||
* @covers ::set_groups_messaging
|
||||
*/
|
||||
public function test_set_groups_messaging_doesnt_exist(): void {
|
||||
$this->resetAfterTest();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue