Skip to content

Commit 213c31f

Browse files
committed
disable codechecker coverage warnings for the moment 3
1 parent 2ad1e0b commit 213c31f

File tree

10 files changed

+1
-37
lines changed

10 files changed

+1
-37
lines changed

step/adminapprove/tests/admin_approve_test.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
require_once(__DIR__ . '/../../../tests/generator/lib.php');
2222

23-
use PHPUnit\Framework\Attributes\CoversNothing;
2423
use tool_lifecycle\local\manager\process_manager;
2524
use tool_lifecycle\local\manager\workflow_manager;
2625
use tool_lifecycle\task\lifecycle_task;
@@ -34,7 +33,6 @@
3433
* @copyright 2019 Justus Dieckmann
3534
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3635
*/
37-
#[CoversNothing]
3836
final class admin_approve_test extends \advanced_testcase {
3937

4038
/**
@@ -45,7 +43,6 @@ final class admin_approve_test extends \advanced_testcase {
4543
* @throws \dml_transaction_exception
4644
* @throws \moodle_exception
4745
*/
48-
#[CoversNothing]
4946
public function test_admin_mail(): void {
5047
$this->resetAfterTest(true);
5148
$generator = $this->getDataGenerator()->get_plugin_generator('tool_lifecycle');

step/email/lib.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*/
2323
namespace tool_lifecycle\step;
2424

25-
use core_user;
2625
use tool_lifecycle\local\manager\process_manager;
2726
use tool_lifecycle\local\manager\settings_manager;
2827
use tool_lifecycle\local\response\step_response;

step/email/tests/lib_test.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424
namespace lifecyclestep_email;
2525

26-
use PHPUnit\Framework\Attributes\CoversFunction;
2726
use tool_lifecycle\step\email;
2827

2928
defined('MOODLE_INTERNAL') || die();
@@ -46,7 +45,6 @@ final class lib_test extends \advanced_testcase {
4645
/**
4746
* Tests \tool_lifecycle\step\email::replace_placeholders.
4847
*/
49-
#[CoversFunction('replace_placeholders')]
5048
public function test_replace_placeholders(): void {
5149
$this->resetAfterTest();
5250

step/makeinvisible/tests/make_invisible_test.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
require_once(__DIR__ . '/../../../tests/generator/lib.php');
2222

23-
use PHPUnit\Framework\Attributes\CoversNothing;
2423
use tool_lifecycle\local\manager\process_manager;
2524
use tool_lifecycle\local\manager\settings_manager;
2625
use tool_lifecycle\local\manager\workflow_manager;
@@ -35,7 +34,6 @@
3534
* @copyright 2019 Justus Dieckmann
3635
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3736
*/
38-
#[CoversNothing]
3937
final class make_invisible_test extends \advanced_testcase {
4038

4139
/**
@@ -61,7 +59,6 @@ public function setUp(): void {
6159
* @throws \dml_transaction_exception
6260
* @throws \moodle_exception
6361
*/
64-
#[CoversNothing]
6562
public function test_make_invisible(): void {
6663
$generator = $this->getDataGenerator()->get_plugin_generator('tool_lifecycle');
6764
$workflow = $generator->create_workflow([], []);

trigger/byrole/tests/lifecycletrigger_byrole_test.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424

2525
namespace lifecycletrigger_byrole;
2626

27-
use PHPUnit\Framework\Attributes\CoversNothing;
2827
use tool_lifecycle\processor;
29-
use tool_lifecycle\local\response\trigger_response;
28+
3029

3130
defined('MOODLE_INTERNAL') || die();
3231
require_once(__DIR__ . '/../lib.php');
@@ -40,7 +39,6 @@
4039
* @copyright 2017 Tobias Reischmann WWU Nina Herrmann WWU
4140
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4241
*/
43-
#[CoversNothing]
4442
final class lifecycletrigger_byrole_test extends \advanced_testcase {
4543

4644
/** @var \tool_lifecycle\processor $processor Instance of the lifecycle processor */
@@ -66,7 +64,6 @@ protected function setUp(): void {
6664
* @throws \coding_exception
6765
* @throws \dml_exception
6866
*/
69-
#[CoversNothing]
7067
public function test_lib_validcourse(): void {
7168
global $DB;
7269
$generator = $this->getDataGenerator()->get_plugin_generator('lifecycletrigger_byrole');
@@ -87,7 +84,6 @@ public function test_lib_validcourse(): void {
8784
* @throws \coding_exception
8885
* @throws \dml_exception
8986
*/
90-
#[CoversNothing]
9187
public function test_lib_norolecourse(): void {
9288
global $DB;
9389
$generator = $this->getDataGenerator()->get_plugin_generator('lifecycletrigger_byrole');
@@ -109,7 +105,6 @@ public function test_lib_norolecourse(): void {
109105
* @throws \coding_exception
110106
* @throws \dml_exception
111107
*/
112-
#[CoversNothing]
113108
public function test_lib_norolefoundcourse(): void {
114109
global $DB;
115110
$generator = $this->getDataGenerator()->get_plugin_generator('lifecycletrigger_byrole');
@@ -135,7 +130,6 @@ public function test_lib_norolefoundcourse(): void {
135130
* @throws \coding_exception
136131
* @throws \dml_exception
137132
*/
138-
#[CoversNothing]
139133
public function test_lib_rolefoundagain(): void {
140134
global $DB;
141135
$generator = $this->getDataGenerator()->get_plugin_generator('lifecycletrigger_byrole');

trigger/categories/tests/trigger_test.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424
namespace lifecycletrigger_categories;
2525

26-
use PHPUnit\Framework\Attributes\CoversNothing;
2726
use tool_lifecycle\local\entity\trigger_subplugin;
2827
use tool_lifecycle\processor;
2928
use tool_lifecycle\local\response\trigger_response;
@@ -42,7 +41,6 @@
4241
* @copyright 2017 Tobias Reischmann WWU
4342
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4443
*/
45-
#[CoversNothing]
4644
final class trigger_test extends \advanced_testcase {
4745

4846
/** @var trigger_subplugin $excludetrigger Trigger instance that excludes a category. */
@@ -88,7 +86,6 @@ public function setUp(): void {
8886
/**
8987
* Tests if courses, which are in the category are correctly triggered.
9088
*/
91-
#[CoversNothing]
9289
public function test_course_has_cat(): void {
9390

9491
$course = $this->getDataGenerator()->create_course(['category' => $this->category->id]);
@@ -113,7 +110,6 @@ public function test_course_has_cat(): void {
113110
/**
114111
* Tests if courses, which are in the category are correctly triggered.
115112
*/
116-
#[CoversNothing]
117113
public function test_course_within_cat(): void {
118114

119115
$course = $this->getDataGenerator()->create_course(['category' => $this->childcategory->id]);
@@ -138,7 +134,6 @@ public function test_course_within_cat(): void {
138134
/**
139135
* Tests if courses, which are not in the category are correctly triggered.
140136
*/
141-
#[CoversNothing]
142137
public function test_course_not_within_cat(): void {
143138
$course = $this->getDataGenerator()->create_course();
144139

trigger/customfielddelay/tests/trigger_test.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424
namespace lifecycletrigger_customfielddelay;
2525

26-
use PHPUnit\Framework\Attributes\CoversNothing;
2726
use tool_lifecycle\local\entity\trigger_subplugin;
2827
use tool_lifecycle\processor;
2928

@@ -41,7 +40,6 @@
4140
* @copyright 2020 Tobias Reischmann WWU
4241
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4342
*/
44-
#[CoversNothing]
4543
final class trigger_test extends \advanced_testcase {
4644

4745
/** @var $triggerinstance trigger_subplugin Instance of the trigger. */
@@ -85,7 +83,6 @@ public function setUp(): void {
8583
* @throws \coding_exception
8684
* @throws \dml_exception
8785
*/
88-
#[CoversNothing]
8986
public function test_young_course(): void {
9087
$customfieldvalue = ['shortname' => 'test', 'value' => time() + 1000000];
9188
$course = $this->getDataGenerator()->create_course(['customfields' => [$customfieldvalue]]);
@@ -110,7 +107,6 @@ public function test_young_course(): void {
110107
* @throws \coding_exception
111108
* @throws \dml_exception
112109
*/
113-
#[CoversNothing]
114110
public function test_young_course_with_second_customcourse_field(): void {
115111

116112
// Add additional course field.
@@ -141,7 +137,6 @@ public function test_young_course_with_second_customcourse_field(): void {
141137
* @throws \coding_exception
142138
* @throws \dml_exception
143139
*/
144-
#[CoversNothing]
145140
public function test_old_course(): void {
146141

147142
$customfieldvalue = ['shortname' => 'test', 'value' => time() - 1000000];

trigger/delayedcourses/tests/trigger_test.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
namespace lifecycletrigger_delayedcourses;
1818

19-
use PHPUnit\Framework\Attributes\CoversNothing;
2019
use tool_lifecycle\local\entity\trigger_subplugin;
2120
use tool_lifecycle\local\manager\delayed_courses_manager;
2221
use tool_lifecycle\local\manager\settings_manager;
@@ -38,7 +37,6 @@
3837
* @copyright 2025 Thomas Niedermaier University of Münster
3938
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4039
*/
41-
#[CoversNothing]
4240
final class trigger_test extends \advanced_testcase {
4341

4442
/**@var processor Instance of the lifecycle processor */
@@ -79,7 +77,6 @@ public function setUp(): void {
7977
/**
8078
* Tests if trigger for inclusion of delayed courses works as expected.
8179
*/
82-
#[CoversNothing]
8380
public function test_include_delayedcourses(): void {
8481

8582
$this->triggerinstance = generator::create_workflow_with_delayedcourses_trigger();

trigger/semindependent/tests/trigger_test.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
namespace lifecycletrigger_semindependent;
1818

19-
use PHPUnit\Framework\Attributes\CoversNothing;
2019
use tool_lifecycle\local\entity\trigger_subplugin;
2120
use tool_lifecycle\processor;
2221
use tool_lifecycle_trigger_semindependent_generator as generator;
@@ -35,7 +34,6 @@
3534
* @copyright 2017 Tobias Reischmann WWU
3635
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
3736
*/
38-
#[CoversNothing]
3937
final class trigger_test extends \advanced_testcase {
4038

4139
/**@var processor Instance of the lifecycle processor */
@@ -66,7 +64,6 @@ public function setUp(): void {
6664
/**
6765
* Tests if trigger for inclusion of semester independent courses works as expected.
6866
*/
69-
#[CoversNothing]
7067
public function test_include_semester_independent(): void {
7168

7269
$this->triggerinstance = generator::create_workflow_with_semindependent(false);
@@ -91,7 +88,6 @@ public function test_include_semester_independent(): void {
9188
/**
9289
* Tests if trigger for exclusion of semester independent courses works as expected.
9390
*/
94-
#[CoversNothing]
9591
public function test_exclude_semester_independent(): void {
9692

9793
$this->triggerinstance = generator::create_workflow_with_semindependent(true);

trigger/startdatedelay/tests/trigger_test.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424
namespace lifecycletrigger_startdatedelay;
2525

26-
use PHPUnit\Framework\Attributes\CoversNothing;
2726
use tool_lifecycle\local\entity\trigger_subplugin;
2827
use tool_lifecycle\processor;
2928

@@ -41,7 +40,6 @@
4140
* @copyright 2017 Tobias Reischmann WWU
4241
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
4342
*/
44-
#[CoversNothing]
4543
final class trigger_test extends \advanced_testcase {
4644

4745
/** @var $triggerinstance trigger_subplugin Instance of the trigger. */
@@ -62,7 +60,6 @@ public function setUp(): void {
6260
/**
6361
* Tests if courses, which are newer than the default of 190 days are not triggered by this plugin.
6462
*/
65-
#[CoversNothing]
6663
public function test_young_course(): void {
6764

6865
$course = $this->getDataGenerator()->create_course(['startdate' => time() - 50 * 24 * 60 * 60]);
@@ -81,7 +78,6 @@ public function test_young_course(): void {
8178
/**
8279
* Tests if courses, which are older than the default of 190 days are triggered by this plugin.
8380
*/
84-
#[CoversNothing]
8581
public function test_old_course(): void {
8682

8783
$course = $this->getDataGenerator()->create_course(['startdate' => time() - 200 * 24 * 60 * 60]);

0 commit comments

Comments
 (0)