mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Fix test Tests\Icinga\Form\Config\Resource\ResourceFormTest because the method being tested has been changed
refs #6542
This commit is contained in:
parent
23baa0dc83
commit
6ccebf45c8
@ -261,6 +261,8 @@ class ResourceFormTest extends BaseTestCase
|
|||||||
protected function setUpResourceFactoryMock($resourceMock)
|
protected function setUpResourceFactoryMock($resourceMock)
|
||||||
{
|
{
|
||||||
Mockery::mock('alias:Icinga\Data\ResourceFactory')
|
Mockery::mock('alias:Icinga\Data\ResourceFactory')
|
||||||
|
->shouldReceive('mysqlAvailable')
|
||||||
|
->andReturn(true)
|
||||||
->shouldReceive('createResource')
|
->shouldReceive('createResource')
|
||||||
->with(Mockery::type('\Zend_Config'))
|
->with(Mockery::type('\Zend_Config'))
|
||||||
->andReturn($resourceMock);
|
->andReturn($resourceMock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user