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…
Reference in New Issue