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 66dfce8 commit 5ebcc9d
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-local_profiletheme
Changes
-------

### Unreleased

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

### v4.4-r1

* 2024-08-24 - Development: Rename master branch to main, please update your clones.
Expand Down
3 changes: 3 additions & 0 deletions tests/rules_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public function setUp(): void {
}

$this->resetAfterTest();

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

/**
Expand Down

0 comments on commit 5ebcc9d

Please sign in to comment.