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 43e4cf4 commit 9b76c42
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-lifecycletrigger_customfieldsemester
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/trigger_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public function setUp(): void {
// Create the workflow including the trigger.
$this->triggerinstance = \tool_lifecycle_trigger_customfieldsemester_generator::create_trigger_with_workflow(
$customfield['shortname'], TEST_LIFECYCLETRIGGER_CUSTOMFIELDSEMESTER_DELAY);

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

/**
Expand Down

0 comments on commit 9b76c42

Please sign in to comment.