From 660b5d1af6e712b4f42a71ba861b22dcb7e95ee6 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle <bjoern@schiessle.org> Date: Fri, 13 Jul 2018 17:34:32 +0200 Subject: [PATCH] fix unit tests Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org> --- apps/files_sharing/tests/Controller/ShareControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php index fb417878647..a01560d0288 100644 --- a/apps/files_sharing/tests/Controller/ShareControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php @@ -192,6 +192,9 @@ class ShareControllerTest extends \Test\TestCase { public function testShowShare() { + + $note = 'personal note'; + $this->shareController->setToken('token'); $owner = $this->getMockBuilder(IUser::class)->getMock(); @@ -210,6 +213,7 @@ class ShareControllerTest extends \Test\TestCase { $share->setPassword('password') ->setShareOwner('ownerUID') ->setNode($file) + ->setNote($note) ->setTarget('/file1.txt'); $this->session->method('exists')->with('public_link_authenticated')->willReturn(true); @@ -283,6 +287,7 @@ class ShareControllerTest extends \Test\TestCase { 'shareUrl' => null, 'previewImage' => null, 'previewURL' => 'downloadURL', + 'note' => $note ); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); -- GitLab