Return bootstrap mock when calling BaseTestCase::setupIcingaMock()
This commit is contained in:
parent
c947ba3b18
commit
d6377ca00c
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue