summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/PageControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/controller/PageControllerTest.php')
-rw-r--r--tests/unit/controller/PageControllerTest.php10
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