From 45177b1a7c4651d9a7792bff7a3e10762a3c142a Mon Sep 17 00:00:00 2001 From: Nikolay Beketov Date: Tue, 17 Sep 2024 15:26:34 +0800 Subject: [PATCH] Fix OpenLDAP integration. Add Conflict page. Fix translation errors. Optimize module view. Update composer libraries. --- tests/Modules/ModuleLdapSync/Lib/LdapSyncMainTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); } - }