Skip to content

Commit

Permalink
Fix OpenLDAP integration.
Browse files Browse the repository at this point in the history
Add Conflict page.
Fix translation errors.
Optimize module view.
Update composer libraries.
  • Loading branch information
jorikfon committed Sep 17, 2024
1 parent 45f2aa8 commit 45177b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/Modules/ModuleLdapSync/Lib/LdapSyncMainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -47,5 +50,4 @@ public function testGetUsersList()
$this->assertTrue($res->success);
}


}

0 comments on commit 45177b1

Please sign in to comment.