Skip to content

Commit 1cc23b1

Browse files
Add return type to tests setUp() and tearDown() functions
1 parent 0347df1 commit 1cc23b1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/locallib_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
*/
3535
class mod_moodleoverflow_locallib_testcase extends advanced_testcase {
3636

37-
public function setUp() {
37+
public function setUp(): void {
3838
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
3939
}
4040

41-
public function tearDown() {
41+
public function tearDown(): void {
4242
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
4343
}
4444

tests/privacy_provider_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class mod_moodleoverflow_privacy_provider_testcase extends \core_privacy\tests\p
4545
/**
4646
* Test setUp.
4747
*/
48-
public function setUp() {
48+
public function setUp(): void {
4949
$this->resetAfterTest(true);
5050
$this->generator = $this->getDataGenerator()->get_plugin_generator('mod_moodleoverflow');
5151
}

tests/subscriptions_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class mod_moodleoverflow_subscriptions_testcase extends advanced_testcase {
3939
/**
4040
* Test setUp.
4141
*/
42-
public function setUp() {
42+
public function setUp(): void {
4343
// Clear all caches.
4444
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
4545
\mod_moodleoverflow\subscriptions::reset_discussion_cache();
@@ -48,7 +48,7 @@ public function setUp() {
4848
/**
4949
* Test tearDown.
5050
*/
51-
public function tearDown() {
51+
public function tearDown(): void {
5252
// Clear all caches.
5353
\mod_moodleoverflow\subscriptions::reset_moodleoverflow_cache();
5454
\mod_moodleoverflow\subscriptions::reset_discussion_cache();

0 commit comments

Comments
 (0)