MDL-81522 phpunit: Add missing void return type to all tests

While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
This commit is contained in:
Eloy Lafuente (stronk7)
2024-06-11 12:18:04 +02:00
parent db07c09afc
commit 1093256560
1360 changed files with 9928 additions and 9928 deletions
+4 -4
View File
@@ -29,7 +29,7 @@ use core_competency\template;
*/
class task_test extends \advanced_testcase {
public function test_sync_plans_from_cohorts_task() {
public function test_sync_plans_from_cohorts_task(): void {
global $DB;
$this->resetAfterTest(true);
@@ -149,7 +149,7 @@ class task_test extends \advanced_testcase {
$this->assertEquals(3, plan::count_records(array('templateid' => $tpl->get('id'))));
}
public function test_sync_plans_from_cohorts_with_templateduedate_task() {
public function test_sync_plans_from_cohorts_with_templateduedate_task(): void {
$this->resetAfterTest(true);
$this->setAdminUser();
$dg = $this->getDataGenerator();
@@ -228,7 +228,7 @@ class task_test extends \advanced_testcase {
$this->assertEquals(4, plan::count_records(array('templateid' => $tpl->get('id'))));
}
public function test_sync_plans_from_cohorts_with_passed_duedate() {
public function test_sync_plans_from_cohorts_with_passed_duedate(): void {
global $DB;
$this->resetAfterTest(true);
@@ -266,7 +266,7 @@ class task_test extends \advanced_testcase {
$this->assertEquals(2, plan::count_records()); // Now there is two.
}
public function test_complete_plans_task() {
public function test_complete_plans_task(): void {
global $DB;
$this->resetAfterTest(true);
$this->setAdminUser();