Skip to content

Commit

Permalink
Tests: Call parent setup() function when instantiating PHPUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Oct 27, 2024
1 parent c1b2949 commit 6e8e03d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ moodle-availability_password
Changes
-------

### Unreleased

* 2024-10-27 - Tests: Call parent setup() function when instantiating PHPUnit tests.

### v4.1-r3

* 2024-08-11 - Add section for scheduled tasks to README
Expand Down
3 changes: 3 additions & 0 deletions tests/privacy/privacy_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ final class privacy_test extends \core_privacy\tests\provider_testcase {
*/
public function setUp(): void {
$this->resetAfterTest();

// Call parent setup.
parent::setUp();
}

/**
Expand Down

0 comments on commit 6e8e03d

Please sign in to comment.