Skip to content

Commit 21c45ae

Browse files
authored
Merge pull request #5748 from kenjis/fix-resetServices
test: add parameter to initialize autoloader in $this->resetService()
2 parents 9e29c23 + e14e709 commit 21c45ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Test/CIUnitTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ protected function resetFactories()
299299
/**
300300
* Resets shared instanced for all Services
301301
*/
302-
protected function resetServices()
302+
protected function resetServices(bool $initAutoloader = false)
303303
{
304-
Services::reset();
304+
Services::reset($initAutoloader);
305305
}
306306

307307
/**

0 commit comments

Comments
 (0)