From e480bf26af1c62a0ada94f3e5326ac4a0d536fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 28 May 2021 08:22:10 +0200 Subject: [PATCH] Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/tests/Controller/ApiControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/tests/Controller/ApiControllerTest.php b/apps/files/tests/Controller/ApiControllerTest.php index 1fb6490f14323..b1a49ff56df5b 100644 --- a/apps/files/tests/Controller/ApiControllerTest.php +++ b/apps/files/tests/Controller/ApiControllerTest.php @@ -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); @@ -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);