From 9e7bad5ba71d5a5d68e2aadf9f970103270602d5 Mon Sep 17 00:00:00 2001 From: Benjamin Gaussorgues Date: Thu, 17 Aug 2023 14:50:26 +0200 Subject: [PATCH] fixup! Check if required headers are set --- tests/Unit/Controller/LockingControllerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/Controller/LockingControllerTest.php b/tests/Unit/Controller/LockingControllerTest.php index fa8e855f..8822976e 100644 --- a/tests/Unit/Controller/LockingControllerTest.php +++ b/tests/Unit/Controller/LockingControllerTest.php @@ -107,7 +107,7 @@ protected function setUp(): void { public function testLockFolder(): void { $fileId = 42; - $sendE2E = ''; + $sendE2E = 'e2eToken'; $this->l10n->expects($this->any()) ->method('t') @@ -118,7 +118,7 @@ public function testLockFolder(): void { $this->request->expects($this->once()) ->method('getParam') ->with('e2e-token', '') - ->willReturn(''); + ->willReturn($sendE2E); $userFolder = $this->createMock(Folder::class); $this->rootFolder->expects($this->once()) @@ -149,11 +149,11 @@ public function testLockFolder(): void { public function testLockFolderException(): void { $fileId = 42; - $sendE2E = ''; + $sendE2E = 'e2eToken'; $this->request->expects($this->once()) ->method('getParam') ->with('e2e-token', '') - ->willReturn(''); + ->willReturn($sendE2E); $userFolder = $this->createMock(Folder::class); $this->rootFolder->expects($this->once())