summaryrefslogtreecommitdiffstats
path: root/tests/Core/Command
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-03-02 15:20:07 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2018-03-02 15:20:35 +0100
commit3a3368336440dc0cecf82b48b96879ebdeb6bb75 (patch)
treebd42c3f027f02089d2c5c72531c6370d305c8fa4 /tests/Core/Command
parent9259b8a90ee66705f2d4c00893dede9f693ec592 (diff)
downloadnextcloud-server-3a3368336440dc0cecf82b48b96879ebdeb6bb75.tar.gz
nextcloud-server-3a3368336440dc0cecf82b48b96879ebdeb6bb75.zip
update unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests/Core/Command')
-rw-r--r--tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
index 57eb2137ac1..4ecea745cfa 100644
--- a/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
+++ b/tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php
@@ -175,7 +175,7 @@ class ChangeKeyStorageRootTest extends TestCase {
$this->view->expects($this->once())->method('file_put_contents')
->with('newRoot/' . \OC\Encryption\Keys\Storage::KEY_STORAGE_MARKER,
- 'ownCloud will detect this folder as key storage root only if this file exists');
+ 'Nextcloud will detect this folder as key storage root only if this file exists')->willReturn(true);
$this->invokePrivate($this->changeKeyStorageRoot, 'prepareNewRoot', ['newRoot']);
}
@@ -198,6 +198,7 @@ class ChangeKeyStorageRootTest extends TestCase {
public function dataTestPrepareNewRootException() {
return [
[true, false],
+ [true, null],
[false, true]
];
}