Merge pull request #6020 from kenjis/fix-BaseServices-reset

fix: change BaseService::reset() $initAutoloader to true by default
This commit is contained in:
kenjis 2022-05-25 14:22:18 +09:00 committed by GitHub
commit 2f450dbfcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ class BaseService
/** /**
* Reset shared instances and mocks for testing. * Reset shared instances and mocks for testing.
*/ */
public static function reset(bool $initAutoloader = false) public static function reset(bool $initAutoloader = true)
{ {
static::$mocks = []; static::$mocks = [];
static::$instances = []; static::$instances = [];

View File

@ -299,7 +299,7 @@ abstract class CIUnitTestCase extends TestCase
/** /**
* Resets shared instanced for all Services * Resets shared instanced for all Services
*/ */
protected function resetServices(bool $initAutoloader = false) protected function resetServices(bool $initAutoloader = true)
{ {
Services::reset($initAutoloader); Services::reset($initAutoloader);
} }