]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix unit tests
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 3 Feb 2016 21:45:33 +0000 (22:45 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 3 Feb 2016 21:45:33 +0000 (22:45 +0100)
apps/user_ldap/tests/group_ldap.php

index 5f9ded878cab0b5c7dcca88ae5c0ca9dfee0ec3c..667a1c3acb2b74310b493aabed34b71aa9428b82 100644 (file)
@@ -67,10 +67,13 @@ class Test_Group_Ldap extends \Test\TestCase {
 
        private function enableGroups($access) {
                $access->connection->expects($this->any())
-                          ->method('__get')
-                          ->will($this->returnCallback(function() {
-                                       return 1;
-                          }));
+                       ->method('__get')
+                       ->will($this->returnCallback(function($name) {
+                               if($name === 'ldapDynamicGroupMemberURL') {
+                                       return '';
+                               }
+                               return 1;
+                       }));
        }
 
        public function testCountEmptySearchString() {
@@ -430,6 +433,8 @@ class Test_Group_Ldap extends \Test\TestCase {
                        ->will($this->returnCallback(function($name) {
                                if($name === 'useMemberOfToDetectMembership') {
                                        return 0;
+                               } else if($name === 'ldapDynamicGroupMemberURL') {
+                                       return '';
                                }
                                return 1;
                        }));