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 e6bab06 commit 91c4785
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_profilecohort
Changes
-------

### Unreleased

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

### v4.1-r5

* 2024-08-20 - Remove duplicate header on overview page.
Expand Down
3 changes: 3 additions & 0 deletions tests/rules_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public function setUp(): void {
$this->cohortids[] = $this->getDataGenerator()->create_cohort(['component' => 'local_profilecohort'])->id;

$this->resetAfterTest();

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

/**
Expand Down

0 comments on commit 91c4785

Please sign in to comment.