Skip to content

Commit e480bf2

Browse files
committed
Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviews
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 7668d3a commit e480bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files/tests/Controller/ApiControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function testShowHiddenFiles() {
239239

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

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

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

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

0 commit comments

Comments
 (0)