Skip to content

Commit

Permalink
CTP-3560 setUp tearDown ret type
Browse files Browse the repository at this point in the history
  • Loading branch information
watson8 committed Sep 2, 2024
1 parent 66a857c commit 91f453d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/classes/models/coursework_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function setUp(): void {
/**
* Clean up the test fixture by removing the objects.
*/
public function tearDown() {
public function tearDown(): void {
global $DB;

$DB->delete_records('coursework', array('id' => $this->coursework->id));
Expand Down
2 changes: 1 addition & 1 deletion tests/classes/models/submission_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function setUp(): void {
/**
* Clean up the test fixture by removing the objects.
*/
public function tearDown() {
public function tearDown(): void {
global $DB;

$DB->delete_records('coursework', array('id' => $this->coursework->id));
Expand Down
2 changes: 1 addition & 1 deletion tests/generator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class generator_test extends \advanced_testcase {
/**
* Sets things up for every test. We want all to clean up after themselves.
*/
public function setUp():void {
public function setUp(): void {
$this->resetAfterTest(true);
}

Expand Down

0 comments on commit 91f453d

Please sign in to comment.