Skip to content

Commit

Permalink
Fix setUserValue bool test on testShowHiddenFiles & testCropImagePrev…
Browse files Browse the repository at this point in the history
…iews

Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed May 28, 2021
1 parent 7668d3a commit e480bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/tests/Controller/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function testShowHiddenFiles() {

$this->config->expects($this->once())
->method('setUserValue')
->with($this->user->getUID(), 'files', 'show_hidden', $show);
->with($this->user->getUID(), 'files', 'show_hidden', '0');

$expected = new Http\Response();
$actual = $this->apiController->showHiddenFiles($show);
Expand All @@ -252,7 +252,7 @@ public function testCropImagePreviews() {

$this->config->expects($this->once())
->method('setUserValue')
->with($this->user->getUID(), 'files', 'crop_image_previews', $crop);
->with($this->user->getUID(), 'files', 'crop_image_previews', '1');

$expected = new Http\Response();
$actual = $this->apiController->cropImagePreviews($crop);
Expand Down

0 comments on commit e480bf2

Please sign in to comment.