From 8d4346d65688d2aabd6e144fe3f3609897a46230 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 22 Nov 2019 13:23:56 +0100 Subject: Fix more tests Signed-off-by: Roeland Jago Douma --- apps/user_ldap/tests/WizardTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/user_ldap') diff --git a/apps/user_ldap/tests/WizardTest.php b/apps/user_ldap/tests/WizardTest.php index 05b0c5a9449..32147c2b329 100644 --- a/apps/user_ldap/tests/WizardTest.php +++ b/apps/user_ldap/tests/WizardTest.php @@ -32,6 +32,7 @@ use OCA\User_LDAP\Access; use OCA\User_LDAP\Configuration; use OCA\User_LDAP\ILDAPWrapper; use OCA\User_LDAP\Wizard; +use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; /** @@ -80,7 +81,7 @@ class WizardTest extends TestCase { return array(new Wizard($conf, $lw, $access), $conf, $lw, $access); } - private function prepareLdapWrapperForConnections(\PHPUnit_Framework_MockObject_MockObject &$ldap) { + private function prepareLdapWrapperForConnections(MockObject &$ldap) { $ldap->expects($this->once()) ->method('connect') //dummy value, usually invalid -- cgit v1.2.3