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/ItemControllerTest.php | |
parent | 3baa8b51e42a1d353d5d9335a4c464d224027a40 (diff) |
added return value tests for controllers
Diffstat (limited to 'tests/unit/controller/ItemControllerTest.php')
-rw-r--r-- | tests/unit/controller/ItemControllerTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/controller/ItemControllerTest.php b/tests/unit/controller/ItemControllerTest.php index 96a28da81..cb055b8f3 100644 --- a/tests/unit/controller/ItemControllerTest.php +++ b/tests/unit/controller/ItemControllerTest.php @@ -161,7 +161,8 @@ class ItemControllerTest extends ControllerTestUtility { $this->equalTo(true), $this->equalTo($this->user)); - $this->controller->star(); + $response = $this->controller->star(); + $this->assertTrue($response instanceof JSONResponse); } @@ -183,7 +184,8 @@ class ItemControllerTest extends ControllerTestUtility { $this->equalTo(false), $this->equalTo($this->user)); - $this->controller->unstar(); + $response = $this->controller->unstar(); + $this->assertTrue($response instanceof JSONResponse); } @@ -203,7 +205,8 @@ class ItemControllerTest extends ControllerTestUtility { ->method('readFeed') ->with($url['feedId'], $post['highestItemId'], $this->user); - $this->controller->readFeed(); + $response = $this->controller->readFeed(); + $this->assertTrue($response instanceof JSONResponse); } |