diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-13 00:09:40 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-13 00:09:40 +0200 |
commit | 08647e4a791e48cdcac18535a6d9dccb2cc7063d (patch) | |
tree | ec19712c0443100f072a762e087b959e97605199 /tests/unit/controller/PageControllerTest.php | |
parent | 2d4b74884bf39bed40729d04cfa2d55e8683440d (diff) |
remove more json responses
Diffstat (limited to 'tests/unit/controller/PageControllerTest.php')
-rw-r--r-- | tests/unit/controller/PageControllerTest.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php index 49e155bd0..331303495 100644 --- a/tests/unit/controller/PageControllerTest.php +++ b/tests/unit/controller/PageControllerTest.php @@ -14,8 +14,6 @@ namespace OCA\News\Controller; use \OCP\IRequest; -use \OCP\AppFramework\Http\TemplateResponse; -use \OCP\AppFramework\Http\JSONResponse; use \OCA\News\Utility\ControllerTestUtility; @@ -67,7 +65,6 @@ class PageControllerTest extends ControllerTestUtility { public function testIndex(){ $response = $this->controller->index(); $this->assertEquals('main', $response->getTemplateName()); - $this->assertTrue($response instanceof TemplateResponse); } @@ -96,7 +93,6 @@ class PageControllerTest extends ControllerTestUtility { $response = $this->controller->settings(); $this->assertEquals($result, $response->getData()); - $this->assertTrue($response instanceof JSONResponse); } @@ -120,9 +116,8 @@ class PageControllerTest extends ControllerTestUtility { $this->equalTo($this->appName), $this->equalTo('compact'), $this->equalTo(true)); - $response = $this->controller->updateSettings(); + $this->controller->updateSettings(); - $this->assertTrue($response instanceof JSONResponse); } @@ -140,8 +135,7 @@ class PageControllerTest extends ControllerTestUtility { $this->equalTo('showAll'), $this->equalTo(true)); - $response = $this->controller->updateSettings(); + $this->controller->updateSettings(); - $this->assertTrue($response instanceof JSONResponse); } }
\ No newline at end of file |