From e90f944076982bb9cb16c37eb148e45ca8a16c5b Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Sun, 27 Oct 2024 15:37:12 +0100 Subject: [PATCH] Tests: Call parent setup() function when instantiating PHPUnit tests --- CHANGES.md | 4 ++++ tests/rules_test.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 36e3f1a..58d98f6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-local_profiletheme Changes ------- +### Unreleased + +* 2024-10-27 - Tests: Call parent setup() function when instantiating PHPUnit tests. + ### v4.1-r4 * 2024-08-20 - Remove duplicate header on overview page. diff --git a/tests/rules_test.php b/tests/rules_test.php index fee73c2..7c57e76 100644 --- a/tests/rules_test.php +++ b/tests/rules_test.php @@ -66,6 +66,9 @@ public function setUp(): void { } $this->resetAfterTest(); + + // Call parent setup. + parent::setUp(); } /**