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.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/apps/encryption/tests/HookManagerTest.php b/apps/encryption/tests/HookManagerTest.php
index 5db3d10cc8f..39797942256 100644
--- a/apps/encryption/tests/HookManagerTest.php
+++ b/apps/encryption/tests/HookManagerTest.php
@@ -38,9 +38,7 @@ class HookManagerTest extends TestCase {
*/
private static $instance;
- /**
- *
- */
+
public function testRegisterHookWithArray() {
self::$instance->registerHook([
$this->getMockBuilder(IHook::class)->disableOriginalConstructor()->getMock(),
@@ -54,19 +52,15 @@ class HookManagerTest extends TestCase {
}
- /**
- *
- */
- public static function setUpBeforeClass() {
+
+ public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
// have to make instance static to preserve data between tests
self::$instance = new HookManager();
}
- /**
- *
- */
+
public function testRegisterHooksWithInstance() {
$mock = $this->getMockBuilder(IHook::class)->disableOriginalConstructor()->getMock();
/** @var \OCA\Encryption\Hooks\Contracts\IHook $mock */