mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
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
|
* Setup mock object for the application's bootstrap
|
||||||
|
*
|
||||||
|
* @return Mockery\Mock
|
||||||
*/
|
*/
|
||||||
protected function setupIcingaMock()
|
protected function setupIcingaMock()
|
||||||
{
|
{
|
||||||
@ -163,6 +165,7 @@ namespace Icinga\Test {
|
|||||||
->shouldReceive('getResponse')->andReturn($responseMock);
|
->shouldReceive('getResponse')->andReturn($responseMock);
|
||||||
|
|
||||||
Icinga::setApp($bootstrapMock, true);
|
Icinga::setApp($bootstrapMock, true);
|
||||||
|
return $bootstrapMock;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user