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:
@@ -32,7 +32,7 @@ require_once($CFG->dirroot.'/grade/querylib.php');
|
||||
*/
|
||||
class querylib_test extends \advanced_testcase {
|
||||
|
||||
public function test_grade_get_gradable_activities() {
|
||||
public function test_grade_get_gradable_activities(): void {
|
||||
$this->resetAfterTest(true);
|
||||
|
||||
$course = $this->getDataGenerator()->create_course();
|
||||
@@ -51,7 +51,7 @@ class querylib_test extends \advanced_testcase {
|
||||
$this->assertTrue(isset($cms[$forum1->cmid]));
|
||||
}
|
||||
|
||||
public function test_grade_get_grade_items_for_activity() {
|
||||
public function test_grade_get_grade_items_for_activity(): void {
|
||||
$this->resetAfterTest(true);
|
||||
|
||||
$course = $this->getDataGenerator()->create_course();
|
||||
|
||||
Reference in New Issue
Block a user