diff --git a/tests/unit/Espo/Core/Upgrades/Actions/BaseTest.php b/tests/unit/Espo/Core/Upgrades/Actions/BaseTest.php index 42ce216806..79463f9e6d 100644 --- a/tests/unit/Espo/Core/Upgrades/Actions/BaseTest.php +++ b/tests/unit/Espo/Core/Upgrades/Actions/BaseTest.php @@ -78,12 +78,13 @@ class BaseTest extends \PHPUnit\Framework\TestCase $this->configWriter = $this->createMock(ConfigWriter::class); - $GLOBALS['log'] = $this->getMockBuilder(Log::class)->disableOriginalConstructor()->getMock(); + $this->log = $this->getMockBuilder(Log::class)->disableOriginalConstructor()->getMock(); $map = [ ['config', $this->config], ['fileManager', $this->fileManager], ['injectableFactory', $this->injectableFactory], + ['log', $this->log], ]; $this->injectableFactory