Skip to content

Commit

Permalink
Merge pull request #6020 from kenjis/fix-BaseServices-reset
Browse files Browse the repository at this point in the history
fix: change BaseService::reset() $initAutoloader to true by default
  • Loading branch information
kenjis authored May 25, 2022
2 parents ec7311b + a8a8fd7 commit 2f450db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Config/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public static function serviceExists(string $name): ?string
/**
* Reset shared instances and mocks for testing.
*/
public static function reset(bool $initAutoloader = false)
public static function reset(bool $initAutoloader = true)
{
static::$mocks = [];
static::$instances = [];
Expand Down
2 changes: 1 addition & 1 deletion system/Test/CIUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected function resetFactories()
/**
* Resets shared instanced for all Services
*/
protected function resetServices(bool $initAutoloader = false)
protected function resetServices(bool $initAutoloader = true)
{
Services::reset($initAutoloader);
}
Expand Down

0 comments on commit 2f450db

Please sign in to comment.