Fix ResourceFormTest
Add function-mock for mysqlAvaialable to prevent the unit test from breaking
This commit is contained in:
parent
8f1959833b
commit
dc20973581
|
@ -261,6 +261,8 @@ class ResourceFormTest extends BaseTestCase
|
|||
protected function setUpResourceFactoryMock($resourceMock)
|
||||
{
|
||||
Mockery::mock('alias:Icinga\Data\ResourceFactory')
|
||||
->shouldReceive('mysqlAvailable')
|
||||
->andReturn(true)
|
||||
->shouldReceive('createResource')
|
||||
->with(Mockery::type('\Zend_Config'))
|
||||
->andReturn($resourceMock);
|
||||
|
|
Loading…
Reference in New Issue