diff options
-rw-r--r-- | controller/exportcontroller.php | 2 | ||||
-rw-r--r-- | tests/unit/controller/ItemControllerTest.php | 9 | ||||
-rw-r--r-- | tests/unit/controller/UserSettingsControllerTest.php | 6 |
3 files changed, 11 insertions, 6 deletions
diff --git a/controller/exportcontroller.php b/controller/exportcontroller.php index 859da3030..013626938 100644 --- a/controller/exportcontroller.php +++ b/controller/exportcontroller.php @@ -44,7 +44,7 @@ class ExportController extends Controller { * @Ajax */ public function opml(){ - // TODO + // TODO } 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); } 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); } |