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())