diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-12 12:00:38 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-12 12:00:38 +0200 |
commit | e9eaa93826c75097d95d21a556e1b1aae6610bcd (patch) | |
tree | 807784c5ae8fcb18fac7c15c3c2fe6db9dbee15a /tests/unit/controller/UserSettingsControllerTest.php | |
parent | 3baa8b51e42a1d353d5d9335a4c464d224027a40 (diff) |
added return value tests for controllers
Diffstat (limited to 'tests/unit/controller/UserSettingsControllerTest.php')
-rw-r--r-- | tests/unit/controller/UserSettingsControllerTest.php | 6 |
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); } |