From e4d2a9b60fae3438d083d292dd6140e02e26fcbc Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 15 Jul 2024 08:06:44 +0200 Subject: [PATCH] refactoring --- lam/lib/import.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lam/lib/import.inc b/lam/lib/import.inc index 651449b16..7e3b0fe40 100644 --- a/lam/lib/import.inc +++ b/lam/lib/import.inc @@ -746,4 +746,22 @@ class ReplaceAttributesTask implements ImporterTask { throw new LAMException(sprintf(_('Was unable to create DN: %s.'), $this->dn), getExtendedLDAPErrorMessage($ldap)); } + /** + * Returns the DN. Used for unit test. + * + * @return string DN + */ + public function getDn(): string { + return $this->dn; + } + + /** + * Returns the attributes to add. Used for unit test. + * + * @return array[] attributes (array('attr' => array('val1', 'val2'))) + */ + public function getAttributes(): array { + return $this->attributes; + } + }