diff --git a/CHANGES.md b/CHANGES.md index 177fc96..793c1a4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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. diff --git a/tests/rules_test.php b/tests/rules_test.php index 94ba9e9..ba08e23 100644 --- a/tests/rules_test.php +++ b/tests/rules_test.php @@ -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(); } /**