Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-17 09:48:25 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-17 09:48:25 +0300
commit82eb3f8027ba95dd859cde75241921222d970ce1 (patch)
tree9c6cebb8ad2d106395e0022edd3dc623d1637d80 /tests/core
parent91365a896966cc6571e669f267731c5ca96ca8f0 (diff)
Fix the singleuser config casing in new encryption code
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/command/encryption/decryptalltest.php6
-rw-r--r--tests/core/command/encryption/encryptalltest.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/core/command/encryption/decryptalltest.php b/tests/core/command/encryption/decryptalltest.php
index b7fd630e9b0..ef36d6d2827 100644
--- a/tests/core/command/encryption/decryptalltest.php
+++ b/tests/core/command/encryption/decryptalltest.php
@@ -71,7 +71,7 @@ class DecryptAllTest extends TestCase {
$this->config->expects($this->any())
->method('getSystemValue')
- ->with('singleUser', false)
+ ->with('singleuser', false)
->willReturn(false);
$this->appManager->expects($this->any())
->method('isEnabledForUser')
@@ -83,7 +83,7 @@ class DecryptAllTest extends TestCase {
// on construct we enable single-user-mode and disable the trash bin
$this->config->expects($this->at(1))
->method('setSystemValue')
- ->with('singleUser', true);
+ ->with('singleuser', true);
$this->appManager->expects($this->once())
->method('disableApp')
->with('files_trashbin');
@@ -91,7 +91,7 @@ class DecryptAllTest extends TestCase {
// on destruct wi disable single-user-mode again and enable the trash bin
$this->config->expects($this->at(2))
->method('setSystemValue')
- ->with('singleUser', false);
+ ->with('singleuser', false);
$this->appManager->expects($this->once())
->method('enableApp')
->with('files_trashbin');
diff --git a/tests/core/command/encryption/encryptalltest.php b/tests/core/command/encryption/encryptalltest.php
index 41edee6987c..9f7f7375044 100644
--- a/tests/core/command/encryption/encryptalltest.php
+++ b/tests/core/command/encryption/encryptalltest.php
@@ -81,9 +81,9 @@ class EncryptAllTest extends TestCase {
$this->appManager->expects($this->once())->method('disableApp')->with('files_trashbin');
// enable single user mode to avoid that other user login during encryption
// destructor should disable the single user mode again
- $this->config->expects($this->once())->method('getSystemValue')->with('singleUser', false)->willReturn(false);
- $this->config->expects($this->at(1))->method('setSystemValue')->with('singleUser', true);
- $this->config->expects($this->at(2))->method('setSystemValue')->with('singleUser', false);
+ $this->config->expects($this->once())->method('getSystemValue')->with('singleuser', false)->willReturn(false);
+ $this->config->expects($this->at(1))->method('setSystemValue')->with('singleuser', true);
+ $this->config->expects($this->at(2))->method('setSystemValue')->with('singleuser', false);
new EncryptAll($this->encryptionManager, $this->appManager, $this->config, $this->questionHelper);
}