From f363bf5bf61dfb02d28026d757073357e208c544 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 20 May 2021 11:20:28 +0200 Subject: [PATCH] BaseTestCase: Setup `ipl\I18n\StaticTranslator::$instance` --- library/Icinga/Test/BaseTestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Test/BaseTestCase.php b/library/Icinga/Test/BaseTestCase.php index aea79210f..4509315ec 100644 --- a/library/Icinga/Test/BaseTestCase.php +++ b/library/Icinga/Test/BaseTestCase.php @@ -21,6 +21,8 @@ namespace { namespace Icinga\Test { use Exception; + use ipl\I18n\NoopTranslator; + use ipl\I18n\StaticTranslator; use RuntimeException; use Mockery; use Icinga\Application\Icinga; @@ -140,6 +142,8 @@ namespace Icinga\Test { public function setUp(): void { parent::setUp(); + + StaticTranslator::$instance = new NoopTranslator(); $this->setupIcingaMock(); }