BaseTestCase: Setup `ipl\I18n\StaticTranslator::$instance`
This commit is contained in:
parent
b09384e489
commit
f363bf5bf6
|
@ -21,6 +21,8 @@ namespace {
|
||||||
namespace Icinga\Test {
|
namespace Icinga\Test {
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use ipl\I18n\NoopTranslator;
|
||||||
|
use ipl\I18n\StaticTranslator;
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use Mockery;
|
use Mockery;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
|
@ -140,6 +142,8 @@ namespace Icinga\Test {
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
StaticTranslator::$instance = new NoopTranslator();
|
||||||
$this->setupIcingaMock();
|
$this->setupIcingaMock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue