]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust unit test
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 11 Dec 2015 11:52:12 +0000 (12:52 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 11 Dec 2015 11:52:12 +0000 (12:52 +0100)
apps/user_ldap/tests/user_ldap.php

index 7593371d85d1c845428d2b05e9090b8e5c5f8461..b08706c71d9e94d8b1b6e4d327fc1a4ec65d8ca8 100644 (file)
@@ -686,6 +686,14 @@ class Test_User_Ldap_Direct extends \Test\TestCase {
                                                        return false;
                                   }
                           }));
+
+               $userMapper = $this->getMockBuilder('\OCA\User_LDAP\Mapping\UserMapping')
+                       ->disableOriginalConstructor()
+                       ->getMock();
+
+               $access->expects($this->any())
+                       ->method('getUserMapper')
+                       ->will($this->returnValue($userMapper));
        }
 
        public function testGetDisplayName() {