Compare commits

...

1 Commits

Author SHA1 Message Date
John Molakvoæ (skjnldsv) e480bf26af
Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviews
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-05-28 08:22:10 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -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);