mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-67673 phpunit: Fix the return type of template methods
All the setup/teardown/pre/post/conditions template methods now are required to return void. This was warned with phpunit 7 and now is enforced. At the same time, fix a few wrong function names, provider data and param types, return statements...
This commit is contained in:
parent
c611109ed7
commit
d81a94807b
421 changed files with 531 additions and 531 deletions
|
@ -39,7 +39,7 @@ abstract class provider_testcase extends \advanced_testcase {
|
|||
/**
|
||||
* Test tearDown.
|
||||
*/
|
||||
public function tearDown() {
|
||||
public function tearDown(): void {
|
||||
\core_privacy\local\request\writer::reset();
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class privacy_manager_testcase extends advanced_testcase {
|
|||
/**
|
||||
* Test tearDown.
|
||||
*/
|
||||
public function tearDown() {
|
||||
public function tearDown(): void {
|
||||
\core_privacy\local\request\writer::reset();
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class writer_test extends advanced_testcase {
|
|||
* Ensure that the writer is cleared away as appropriate after each
|
||||
* test.
|
||||
*/
|
||||
public function tearDown() {
|
||||
public function tearDown(): void {
|
||||
writer::reset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue