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
@@ -37,7 +37,7 @@ class modlib_test extends \advanced_testcase {
/**
* Test prepare_new_moduleinfo_data
*/
public function test_prepare_new_moduleinfo_data() {
public function test_prepare_new_moduleinfo_data(): void {
global $DB;
$this->resetAfterTest(true);
@@ -86,7 +86,7 @@ class modlib_test extends \advanced_testcase {
* Test prepare_new_moduleinfo_data with suffix (which is currently only used by the completion rules).
* @covers ::prepare_new_moduleinfo_data
*/
public function test_prepare_new_moduleinfo_data_with_suffix() {
public function test_prepare_new_moduleinfo_data_with_suffix(): void {
global $DB;
$this->resetAfterTest(true);
@@ -129,7 +129,7 @@ class modlib_test extends \advanced_testcase {
/**
* Test get_moduleinfo_data
*/
public function test_get_moduleinfo_data() {
public function test_get_moduleinfo_data(): void {
global $DB;
$this->resetAfterTest(true);
$this->setAdminUser();
@@ -212,7 +212,7 @@ class modlib_test extends \advanced_testcase {
*
* @covers \add_moduleinfo
*/
public function test_add_moduleinfo() {
public function test_add_moduleinfo(): void {
global $DB;
$this->resetAfterTest(true);