diff --git a/tests/Modules/ModuleLdapSync/Lib/LdapSyncMainTest.php b/tests/Modules/ModuleLdapSync/Lib/LdapSyncMainTest.php index da2a857b3..154f84947 100644 --- a/tests/Modules/ModuleLdapSync/Lib/LdapSyncMainTest.php +++ b/tests/Modules/ModuleLdapSync/Lib/LdapSyncMainTest.php @@ -29,13 +29,16 @@ class LdapSyncMainTest extends AbstractUnitTest public function testSyncAllUsers() { - LdapSyncMain::syncAllUsers(); + $serversList = LdapServers::find('id=2')->toArray(); + foreach ($serversList as $server) { + LdapSyncMain::syncUsersPerServer($server); + } $this->assertTrue(true); } public function testGetUsersList() { - $serverParams = LdapServers::findFirst()->toArray(); + $serverParams = LdapServers::findFirstById(2)->toArray(); $attributes = json_decode($serverParams['attributes'], true); $serverParams = array_merge($attributes, $serverParams); @@ -47,5 +50,4 @@ public function testGetUsersList() $this->assertTrue($res->success); } - }