Skip to content

Commit

Permalink
fixup! Check if required headers are set
Browse files Browse the repository at this point in the history
  • Loading branch information
Altahrim committed Aug 17, 2023
1 parent cbae660 commit 9e7bad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/Controller/LockingControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function setUp(): void {

public function testLockFolder(): void {
$fileId = 42;
$sendE2E = '';
$sendE2E = 'e2eToken';

$this->l10n->expects($this->any())
->method('t')
Expand All @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 9e7bad5

Please sign in to comment.