Fix setUserValue bool test on testShowHiddenFiles & testCropImagePreviews
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
7668d3afcd
commit
e480bf26af
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue