aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Encryption/ManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Encryption/ManagerTest.php')
-rw-r--r--tests/lib/Encryption/ManagerTest.php22
1 files changed, 16 insertions, 6 deletions
diff --git a/tests/lib/Encryption/ManagerTest.php b/tests/lib/Encryption/ManagerTest.php
index 6e18cd296a3..47dd7fd01fb 100644
--- a/tests/lib/Encryption/ManagerTest.php
+++ b/tests/lib/Encryption/ManagerTest.php
@@ -60,7 +60,9 @@ class ManagerTest extends TestCase {
$em = $this->createMock(IEncryptionModule::class);
$em->expects($this->any())->method('getId')->willReturn('id');
$em->expects($this->any())->method('getDisplayName')->willReturn('TestDummyModule0');
- $this->manager->registerEncryptionModule('id', 'TestDummyModule0', function() use ($em) {return $em;});
+ $this->manager->registerEncryptionModule('id', 'TestDummyModule0', function () use ($em) {
+ return $em;
+ });
$this->assertFalse($this->manager->isEnabled());
}
@@ -96,7 +98,6 @@ class ManagerTest extends TestCase {
$this->manager->unregisterEncryptionModule('ID0');
$this->assertEmpty($this->manager->getEncryptionModules());
-
}
@@ -117,7 +118,10 @@ class ManagerTest extends TestCase {
$this->config->expects($this->any())
->method('getAppValue')
->with('core', 'default_encryption_module')
- ->willReturnCallback(function() { global $defaultId; return $defaultId; });
+ ->willReturnCallback(function () {
+ global $defaultId;
+ return $defaultId;
+ });
$this->addNewEncryptionModule($this->manager, 0);
$this->assertCount(1, $this->manager->getEncryptionModules());
@@ -138,7 +142,10 @@ class ManagerTest extends TestCase {
$this->config->expects($this->any())
->method('getAppValue')
->with('core', 'default_encryption_module')
- ->willReturnCallback(function() { global $defaultId; return $defaultId; });
+ ->willReturnCallback(function () {
+ global $defaultId;
+ return $defaultId;
+ });
$this->addNewEncryptionModule($this->manager, 0);
$defaultId = 'ID0';
@@ -160,7 +167,10 @@ class ManagerTest extends TestCase {
$this->config->expects($this->any())
->method('getAppValue')
->with('core', 'default_encryption_module')
- ->willReturnCallback(function() { global $defaultId; return $defaultId; });
+ ->willReturnCallback(function () {
+ global $defaultId;
+ return $defaultId;
+ });
$this->addNewEncryptionModule($this->manager, 0);
$this->assertCount(1, $this->manager->getEncryptionModules());
@@ -251,7 +261,7 @@ class ManagerTest extends TestCase {
->method('getDisplayName')
->willReturn('TestDummyModule' . $id);
/** @var \OCP\Encryption\IEncryptionModule $encryptionModule */
- $manager->registerEncryptionModule('ID' . $id, 'TestDummyModule' . $id, function() use ($encryptionModule) {
+ $manager->registerEncryptionModule('ID' . $id, 'TestDummyModule' . $id, function () use ($encryptionModule) {
return $encryptionModule;
});
}