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 Exception;
use RuntimeException; use RuntimeException;
use stdClass;
use Mockery; use Mockery;
use PHPUnit_Framework_TestCase; use PHPUnit_Framework_TestCase;
use Icinga\Application\Icinga; use Icinga\Application\Icinga;
use Icinga\Data\ConfigObject; use Icinga\Data\ConfigObject;
use Icinga\Data\Db\DbConnection;
use Icinga\Data\ResourceFactory; use Icinga\Data\ResourceFactory;
use Icinga\Web\View; use Icinga\Data\Db\DbConnection;
/** /**
* Class BaseTestCase * Class BaseTestCase
@ -169,12 +167,7 @@ namespace Icinga\Test {
return $libDir; return $libDir;
}) })
->shouldReceive('getRequest')->andReturn($requestMock) ->shouldReceive('getRequest')->andReturn($requestMock)
->shouldReceive('getResponse')->andReturn($responseMock) ->shouldReceive('getResponse')->andReturn($responseMock);
->shouldReceive('getViewRenderer')->andReturnUsing(function () {
$viewRenderer = new stdClass();
$viewRenderer->view = new View();
return $viewRenderer;
});
Icinga::setApp($bootstrapMock, true); Icinga::setApp($bootstrapMock, true);
return $bootstrapMock; return $bootstrapMock;