mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
BaseTestCase: Setup ipl\I18n\StaticTranslator::$instance
This commit is contained in:
parent
b09384e489
commit
f363bf5bf6
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user