Fix test Tests\Icinga\Form\Config\Resource\ResourceFormTest because the method being tested has been changed

refs #6542
This commit is contained in:
Alexander Klimov 2014-06-27 13:25:38 +02:00
parent 23baa0dc83
commit 6ccebf45c8
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);