mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +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
|
@ -58,7 +58,7 @@ class core_blog_events_testcase extends advanced_testcase {
|
|||
/**
|
||||
* Setup the tests.
|
||||
*/
|
||||
protected function setUp() {
|
||||
protected function setUp(): void {
|
||||
global $DB;
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class core_blog_external_testcase extends advanced_testcase {
|
|||
private $tagid;
|
||||
private $postid;
|
||||
|
||||
protected function setUp() {
|
||||
protected function setUp(): void {
|
||||
global $DB, $CFG;
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class core_blog_lib_testcase extends advanced_testcase {
|
|||
private $tagid;
|
||||
private $postid;
|
||||
|
||||
protected function setUp() {
|
||||
protected function setUp(): void {
|
||||
global $DB;
|
||||
parent::setUp();
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ require_once($CFG->dirroot . '/comment/lib.php');
|
|||
*/
|
||||
class core_blog_privacy_testcase extends provider_testcase {
|
||||
|
||||
public function setUp() {
|
||||
public function setUp(): void {
|
||||
$this->resetAfterTest();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue