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:
@@ -44,7 +44,7 @@ class migrate_message_data_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test migrating legacy messages.
|
||||
*/
|
||||
public function test_migrating_messages() {
|
||||
public function test_migrating_messages(): void {
|
||||
global $DB;
|
||||
|
||||
// Create users to test with.
|
||||
@@ -180,7 +180,7 @@ class migrate_message_data_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test migrating legacy notifications.
|
||||
*/
|
||||
public function test_migrating_notifications() {
|
||||
public function test_migrating_notifications(): void {
|
||||
global $DB;
|
||||
|
||||
// Create users to test with.
|
||||
@@ -264,7 +264,7 @@ class migrate_message_data_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test migrating a legacy message that contains null as the format.
|
||||
*/
|
||||
public function test_migrating_message_null_format() {
|
||||
public function test_migrating_message_null_format(): void {
|
||||
global $DB;
|
||||
|
||||
// Create users to test with.
|
||||
@@ -292,7 +292,7 @@ class migrate_message_data_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test migrating a legacy notification that contains null as the format.
|
||||
*/
|
||||
public function test_migrating_notification_null_format() {
|
||||
public function test_migrating_notification_null_format(): void {
|
||||
global $DB;
|
||||
|
||||
// Create users to test with.
|
||||
@@ -320,7 +320,7 @@ class migrate_message_data_test extends \advanced_testcase {
|
||||
/**
|
||||
* Test migrating a legacy message that a user sent to themselves then deleted.
|
||||
*/
|
||||
public function test_migrating_message_deleted_message_sent_to_self() {
|
||||
public function test_migrating_message_deleted_message_sent_to_self(): void {
|
||||
global $DB;
|
||||
|
||||
// Create user to test with.
|
||||
|
||||
Reference in New Issue
Block a user