summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/HookManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/tests/HookManagerTest.php')
-rw-r--r--apps/encryption/tests/HookManagerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/tests/HookManagerTest.php b/apps/encryption/tests/HookManagerTest.php
index 1154368fa3f..c5e5487dba5 100644
--- a/apps/encryption/tests/HookManagerTest.php
+++ b/apps/encryption/tests/HookManagerTest.php
@@ -26,6 +26,7 @@ namespace OCA\Encryption\Tests;
use OCA\Encryption\HookManager;
+use OCP\IConfig;
use Test\TestCase;
class HookManagerTest extends TestCase {
@@ -42,7 +43,7 @@ class HookManagerTest extends TestCase {
self::$instance->registerHook([
$this->getMockBuilder('OCA\Encryption\Hooks\Contracts\IHook')->disableOriginalConstructor()->getMock(),
$this->getMockBuilder('OCA\Encryption\Hooks\Contracts\IHook')->disableOriginalConstructor()->getMock(),
- $this->getMock('NotIHook')
+ $this->createMock(IConfig::class)
]);
$hookInstances = self::invokePrivate(self::$instance, 'hookInstances');