Skip to content

Commit

Permalink
test: add the tearDown to reset the mock service after run `testRedoi…
Browse files Browse the repository at this point in the history
…ngDiscoveryWillStillSetDidDiscoveryPropertyToTrue()` test.
  • Loading branch information
ping-yee committed Oct 26, 2023
1 parent 7cd5c99 commit 62fe2ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/system/Config/BaseConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ protected function setUp(): void
BaseConfig::setModules(new Modules()); // reset to clean copy of Modules
}

protected function tearDown(): void
{
$this->resetServices();
}

public function testBasicValues(): void
{
$dotenv = new DotEnv($this->fixturesFolder, '.env');
Expand Down

0 comments on commit 62fe2ed

Please sign in to comment.