summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/UserSettingsControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/controller/UserSettingsControllerTest.php')
-rw-r--r--tests/unit/controller/UserSettingsControllerTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/controller/UserSettingsControllerTest.php b/tests/unit/controller/UserSettingsControllerTest.php
index 82b4001fc..a0aa0dff4 100644
--- a/tests/unit/controller/UserSettingsControllerTest.php
+++ b/tests/unit/controller/UserSettingsControllerTest.php
@@ -79,7 +79,8 @@ class UserSettingsControllerTest extends ControllerTestUtility {
->method('setUserValue')
->with($this->equalTo('showAll'),
$this->equalTo(true));
- $result = $this->controller->show();
+ $response = $this->controller->show();
+ $this->assertTrue($response instanceof JSONResponse);
}
@@ -88,7 +89,8 @@ class UserSettingsControllerTest extends ControllerTestUtility {
->method('setUserValue')
->with($this->equalTo('showAll'),
$this->equalTo(false));
- $result = $this->controller->hide();
+ $response = $this->controller->hide();
+ $this->assertTrue($response instanceof JSONResponse);
}