From: Gunnar Wrobel
Date: Thu, 23 Apr 2009 06:09:07 +0000 (+0200) Subject: Fix mapping attributes in the test class. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1b40de590ba43580be65d597de7d05c49c27307f;p=horde.git Fix mapping attributes in the test class. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/Test.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/Test.php index 7794136e2..a461fa689 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Test.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Test.php @@ -336,6 +336,7 @@ class Horde_Kolab_Server_Test extends Horde_Kolab_Server_Ldap if (!is_array($attributes)) { $attributes = array($attributes); } + $this->mapKeys($attributes); } else { $attributes = array(); } @@ -352,6 +353,9 @@ class Horde_Kolab_Server_Test extends Horde_Kolab_Server_Ldap } $result = $subtree; } + + $this->unmapAttributes($result); + return $this->getEntries($result); } @@ -480,8 +484,12 @@ class Horde_Kolab_Server_Test extends Horde_Kolab_Server_Ldap $dn)); } if (empty($attrs)) { - return $this->data[$dn]['data']; + $data = $this->data[$dn]['data']; + $this->unmapAttributes($data); + return $data; } else { + $this->mapKeys($attrs); + $result = array(); $data = $this->data[$dn]['data']; @@ -490,6 +498,9 @@ class Horde_Kolab_Server_Test extends Horde_Kolab_Server_Ldap $result[$attr] = $data[$attr]; } } + + $this->unmapAttributes($result); + return $result; } } @@ -509,6 +520,8 @@ class Horde_Kolab_Server_Test extends Horde_Kolab_Server_Ldap $result = $this->bind(); } + $this->mapAttributes($data); + $ldap_data = array(); foreach ($data as $key => $val) { if (!is_array($val)) {