Skip to content

Commit

Permalink
Return bootstrap mock when calling BaseTestCase::setupIcingaMock()
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed Sep 9, 2014
1 parent c947ba3 commit d6377ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Icinga/Test/BaseTestCase.php
Expand Up @@ -145,6 +145,8 @@ public function setUp()

/**
* Setup mock object for the application's bootstrap
*
* @return Mockery\Mock
*/
protected function setupIcingaMock()
{
Expand All @@ -163,6 +165,7 @@ protected function setupIcingaMock()
->shouldReceive('getResponse')->andReturn($responseMock);

Icinga::setApp($bootstrapMock, true);
return $bootstrapMock;
}

/**
Expand Down

0 comments on commit d6377ca

Please sign in to comment.