summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Jobs
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-02 11:02:12 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-06 09:29:27 +0200
commit5fb2eee5df6bfbe3d608709fbe6997860fe4d648 (patch)
treec94f53f8128e92268ff10755066f3d0d2ef76b38 /apps/user_ldap/tests/Jobs
parent798dd401391bc9d88292b50f9a17f01546f70624 (diff)
downloadnextcloud-server-5fb2eee5df6bfbe3d608709fbe6997860fe4d648.tar.gz
nextcloud-server-5fb2eee5df6bfbe3d608709fbe6997860fe4d648.zip
Fix getMock user_ldap
Diffstat (limited to 'apps/user_ldap/tests/Jobs')
-rw-r--r--apps/user_ldap/tests/Jobs/CleanUpTest.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/user_ldap/tests/Jobs/CleanUpTest.php b/apps/user_ldap/tests/Jobs/CleanUpTest.php
index 45e7998da01..62cebcf328e 100644
--- a/apps/user_ldap/tests/Jobs/CleanUpTest.php
+++ b/apps/user_ldap/tests/Jobs/CleanUpTest.php
@@ -24,6 +24,10 @@
namespace OCA\User_LDAP\Tests\Jobs;
+use OCA\User_LDAP\Helper;
+use OCP\IConfig;
+use OCP\IDBConnection;
+
class CleanUpTest extends \Test\TestCase {
public function getMocks() {
$mocks = array();
@@ -35,9 +39,9 @@ class CleanUpTest extends \Test\TestCase {
$this->getMockBuilder('\OCA\User_LDAP\User\DeletedUsersIndex')
->disableOriginalConstructor()
->getMock();
- $mocks['ocConfig'] = $this->getMock('\OCP\IConfig');
- $mocks['db'] = $this->getMock('\OCP\IDBConnection');
- $mocks['helper'] = $this->getMock('\OCA\User_LDAP\Helper');
+ $mocks['ocConfig'] = $this->createMock(IConfig::class);
+ $mocks['db'] = $this->createMock(IDBConnection::class);
+ $mocks['helper'] = $this->createMock(Helper::class);
return $mocks;
}