mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +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
|
@ -37,6 +37,7 @@ require_once($CFG->dirroot . '/calendar/lib.php');
|
|||
* @package core_calendar
|
||||
* @copyright 2017 Cameron Ball <cameron@cameron1729.xyz>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @covers \core_calendar\local\event\container
|
||||
*/
|
||||
class container_test extends \advanced_testcase {
|
||||
|
||||
|
@ -370,7 +371,6 @@ class container_test extends \advanced_testcase {
|
|||
|
||||
/**
|
||||
* Checks that completed activities events do not show.
|
||||
* @covers \core_calendar\local\event::init
|
||||
*/
|
||||
public function test_event_factory_with_completed_module_related_event(): void {
|
||||
global $CFG, $DB;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue