Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviews

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2021-05-28 08:22:10 +02:00
parent 7668d3afcd
commit e480bf26af
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ class ApiControllerTest extends TestCase {
$this->config->expects($this->once()) $this->config->expects($this->once())
->method('setUserValue') ->method('setUserValue')
->with($this->user->getUID(), 'files', 'show_hidden', $show); ->with($this->user->getUID(), 'files', 'show_hidden', '0');
$expected = new Http\Response(); $expected = new Http\Response();
$actual = $this->apiController->showHiddenFiles($show); $actual = $this->apiController->showHiddenFiles($show);
@ -252,7 +252,7 @@ class ApiControllerTest extends TestCase {
$this->config->expects($this->once()) $this->config->expects($this->once())
->method('setUserValue') ->method('setUserValue')
->with($this->user->getUID(), 'files', 'crop_image_previews', $crop); ->with($this->user->getUID(), 'files', 'crop_image_previews', '1');
$expected = new Http\Response(); $expected = new Http\Response();
$actual = $this->apiController->cropImagePreviews($crop); $actual = $this->apiController->cropImagePreviews($crop);