diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php index 1fb6490f14..b1a49ff56d 100644 --- a/apps/files/tests/Controller/ApiControllerTest.php +++ b/apps/files/tests/Controller/ApiControllerTest.php @@ -239,7 +239,7 @@ class ApiControllerTest extends TestCase { $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); @@ -252,7 +252,7 @@ class ApiControllerTest extends TestCase { $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);