Revert "Fix failing search dashboard test"

This reverts commit 7c0dbe0077f56aef5f2a744761b47a0715dd591a.

Fixed by using t() in the SearchDashboard already.
This commit is contained in:
Eric Lippmann 2015-08-25 16:59:05 +02:00
parent 176177d874
commit eb30ecd776

View File

@ -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;