BaseTestCase: Setup ipl\I18n\StaticTranslator::$instance

This commit is contained in:
Johannes Meyer 2021-05-20 11:20:28 +02:00
parent b09384e489
commit f363bf5bf6

View File

@ -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();
}