Skip to content

Commit

Permalink
feat: add reset() for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 26, 2023
1 parent bfecd50 commit 469eef4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions system/Config/BaseConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ public static function setModules(Modules $modules): void
static::$moduleConfig = $modules;
}

/**
* @internal For testing purposes only.
* @testTag
*/
public static function reset(): void
{
static::$registrars = [];
static::$override = true;
static::$didDiscovery = false;
static::$moduleConfig = null;
}

/**
* Will attempt to get environment variables with names
* that match the properties of the child class.
Expand Down

0 comments on commit 469eef4

Please sign in to comment.