From 3a3368336440dc0cecf82b48b96879ebdeb6bb75 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 2 Mar 2018 15:20:07 +0100 Subject: update unit tests Signed-off-by: Bjoern Schiessle --- tests/Core/Command/Encryption/ChangeKeyStorageRootTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] ]; } -- cgit v1.2.3