Fix ResourceFormTest

Add function-mock for mysqlAvaialable to prevent the unit test from breaking
This commit is contained in:
Matthias Jentsch 2014-06-30 18:19:46 +02:00
parent 8f1959833b
commit dc20973581
1 changed files with 2 additions and 0 deletions

View File

@ -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);