Skip to content

Commit 91f453d

Browse files
committed
CTP-3560 setUp tearDown ret type
1 parent 66a857c commit 91f453d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/classes/models/coursework_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function setUp(): void {
6060
/**
6161
* Clean up the test fixture by removing the objects.
6262
*/
63-
public function tearDown() {
63+
public function tearDown(): void {
6464
global $DB;
6565

6666
$DB->delete_records('coursework', array('id' => $this->coursework->id));

tests/classes/models/submission_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function setUp(): void {
5656
/**
5757
* Clean up the test fixture by removing the objects.
5858
*/
59-
public function tearDown() {
59+
public function tearDown(): void {
6060
global $DB;
6161

6262
$DB->delete_records('coursework', array('id' => $this->coursework->id));

tests/generator_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class generator_test extends \advanced_testcase {
4444
/**
4545
* Sets things up for every test. We want all to clean up after themselves.
4646
*/
47-
public function setUp():void {
47+
public function setUp(): void {
4848
$this->resetAfterTest(true);
4949
}
5050

0 commit comments

Comments
 (0)