summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-06-25 19:38:54 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-08-29 11:14:36 +0200
commit371cab367d2b786c0fadb3a76daeb3ba9138e164 (patch)
tree6079217db38894d2581d84a8e3c49ff918e041a4 /apps/user_ldap/tests
parent6958033db9f6bd2ff7e69b05a6cb064206957a65 (diff)
downloadnextcloud-server-371cab367d2b786c0fadb3a76daeb3ba9138e164.tar.gz
nextcloud-server-371cab367d2b786c0fadb3a76daeb3ba9138e164.zip
trigger email detection by Wizard upon any user filter filter change. before it happenend only upon user automatic list filter creation, but not on manual editing
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/wizard.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/user_ldap/tests/wizard.php b/apps/user_ldap/tests/wizard.php
index d6de83bbdd6..867fba11f27 100644
--- a/apps/user_ldap/tests/wizard.php
+++ b/apps/user_ldap/tests/wizard.php
@@ -274,8 +274,9 @@ class Test_Wizard extends \PHPUnit_Framework_TestCase {
var_dump($filter);
}));
- $resultAttribute = $wizard->detectEmailAttribute();
- $this->assertSame('mailPrimaryAddress', $resultAttribute);
+ $result = $wizard->detectEmailAttribute()->getResultArray();
+ $this->assertSame('mailPrimaryAddress',
+ $result['changes']['ldap_email_attr']);
}
public function testDetectEmailAttributeFind() {
@@ -312,8 +313,9 @@ class Test_Wizard extends \PHPUnit_Framework_TestCase {
var_dump($filter);
}));
- $resultAttribute = $wizard->detectEmailAttribute();
- $this->assertSame('mailPrimaryAddress', $resultAttribute);
+ $result = $wizard->detectEmailAttribute()->getResultArray();
+ $this->assertSame('mailPrimaryAddress',
+ $result['changes']['ldap_email_attr']);
}
public function testDetectEmailAttributeFindNothing() {
@@ -350,8 +352,8 @@ class Test_Wizard extends \PHPUnit_Framework_TestCase {
var_dump($filter);
}));
- $resultAttribute = $wizard->detectEmailAttribute();
- $this->assertSame('', $resultAttribute);
+ $result = $wizard->detectEmailAttribute();
+ $this->assertSame(false, $result->hasChanges());
}
public function testCumulativeSearchOnAttributeSkipReadDN() {