Return bootstrap mock when calling BaseTestCase::setupIcingaMock()

This commit is contained in:
Johannes Meyer 2014-09-09 10:19:51 +02:00
parent c947ba3b18
commit d6377ca00c
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,8 @@ namespace Icinga\Test {
/**
* Setup mock object for the application's bootstrap
*
* @return Mockery\Mock
*/
protected function setupIcingaMock()
{
@ -163,6 +165,7 @@ namespace Icinga\Test {
->shouldReceive('getResponse')->andReturn($responseMock);
Icinga::setApp($bootstrapMock, true);
return $bootstrapMock;
}
/**