mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Revert "Fix failing search dashboard test"
This reverts commit 7c0dbe0077f56aef5f2a744761b47a0715dd591a. Fixed by using t() in the SearchDashboard already.
This commit is contained in:
parent
176177d874
commit
eb30ecd776
@ -22,14 +22,12 @@ namespace Icinga\Test {
|
||||
|
||||
use Exception;
|
||||
use RuntimeException;
|
||||
use stdClass;
|
||||
use Mockery;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Icinga\Application\Icinga;
|
||||
use Icinga\Data\ConfigObject;
|
||||
use Icinga\Data\Db\DbConnection;
|
||||
use Icinga\Data\ResourceFactory;
|
||||
use Icinga\Web\View;
|
||||
use Icinga\Data\Db\DbConnection;
|
||||
|
||||
/**
|
||||
* Class BaseTestCase
|
||||
@ -169,12 +167,7 @@ namespace Icinga\Test {
|
||||
return $libDir;
|
||||
})
|
||||
->shouldReceive('getRequest')->andReturn($requestMock)
|
||||
->shouldReceive('getResponse')->andReturn($responseMock)
|
||||
->shouldReceive('getViewRenderer')->andReturnUsing(function () {
|
||||
$viewRenderer = new stdClass();
|
||||
$viewRenderer->view = new View();
|
||||
return $viewRenderer;
|
||||
});
|
||||
->shouldReceive('getResponse')->andReturn($responseMock);
|
||||
|
||||
Icinga::setApp($bootstrapMock, true);
|
||||
return $bootstrapMock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user