LdapBackendFormTest: Fix mock

refs #5514
This commit is contained in:
Marius Hein 2014-08-28 12:13:30 +02:00
parent e345aa257a
commit 4e83bb098a
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ class LdapBackendFormTest extends BaseTestCase
Mockery::mock('alias:Icinga\Data\ResourceFactory')
->shouldReceive('getResourceConfig')
->andReturn(new \Zend_Config(array()))
->shouldReceive('createResource')
->with(Mockery::type('\Zend_Config'))
->shouldReceive('create')
->andReturn(Mockery::mock('Icinga\Protocol\Ldap\Connection'));
}
}