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/ItemControllerTest.php | |
parent | 2d4b74884bf39bed40729d04cfa2d55e8683440d (diff) |
remove more json responses
Diffstat (limited to 'tests/unit/controller/ItemControllerTest.php')
-rw-r--r-- | tests/unit/controller/ItemControllerTest.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/unit/controller/ItemControllerTest.php b/tests/unit/controller/ItemControllerTest.php index 6bc5595d8..20876555a 100644 --- a/tests/unit/controller/ItemControllerTest.php +++ b/tests/unit/controller/ItemControllerTest.php @@ -15,7 +15,6 @@ namespace OCA\News\Controller; use \OCP\IRequest; use \OCP\AppFramework\Http; -use \OCP\AppFramework\Http\JSONResponse; use \OCA\News\Utility\ControllerTestUtility; use \OCA\News\Db\Item; @@ -126,7 +125,6 @@ class ItemControllerTest extends ControllerTestUtility { $result = $this->controller->read(); - $this->assertTrue($result instanceof JSONResponse); } @@ -147,7 +145,6 @@ class ItemControllerTest extends ControllerTestUtility { $this->assertEquals($response->getStatus(), Http::STATUS_NOT_FOUND); $this->assertEquals($msg, $params['msg']); - $this->assertTrue($response instanceof JSONResponse); } @@ -183,7 +180,6 @@ class ItemControllerTest extends ControllerTestUtility { $this->assertEquals($response->getStatus(), Http::STATUS_NOT_FOUND); $this->assertEquals($msg, $params['msg']); - $this->assertTrue($response instanceof JSONResponse); } @@ -203,7 +199,6 @@ class ItemControllerTest extends ControllerTestUtility { $this->equalTo($this->user)); $response = $this->controller->star(); - $this->assertTrue($response instanceof JSONResponse); } @@ -224,7 +219,6 @@ class ItemControllerTest extends ControllerTestUtility { $this->assertEquals($response->getStatus(), Http::STATUS_NOT_FOUND); $this->assertEquals($msg, $params['msg']); - $this->assertTrue($response instanceof JSONResponse); } @@ -244,7 +238,6 @@ class ItemControllerTest extends ControllerTestUtility { $this->equalTo($this->user)); $response = $this->controller->unstar(); - $this->assertTrue($response instanceof JSONResponse); } @@ -265,7 +258,6 @@ class ItemControllerTest extends ControllerTestUtility { $this->assertEquals($response->getStatus(), Http::STATUS_NOT_FOUND); $this->assertEquals($msg, $params['msg']); - $this->assertTrue($response instanceof JSONResponse); } @@ -289,7 +281,6 @@ class ItemControllerTest extends ControllerTestUtility { ->will($this->returnValue(array($feed))); $response = $this->controller->readAll(); - $this->assertTrue($response instanceof JSONResponse); $this->assertEquals($expected, $response->getData()); } @@ -362,7 +353,6 @@ class ItemControllerTest extends ControllerTestUtility { $response = $this->controller->index(); $this->assertEquals($result, $response->getData()); - $this->assertTrue($response instanceof JSONResponse); } @@ -395,7 +385,6 @@ class ItemControllerTest extends ControllerTestUtility { $response = $this->controller->index(); $this->assertEquals($result, $response->getData()); - $this->assertTrue($response instanceof JSONResponse); } @@ -419,7 +408,6 @@ class ItemControllerTest extends ControllerTestUtility { $response = $this->controller->index(); $this->assertEquals($result, $response->getData()); - $this->assertTrue($response instanceof JSONResponse); } @@ -472,7 +460,6 @@ class ItemControllerTest extends ControllerTestUtility { $response = $this->controller->newItems(); $this->assertEquals($result, $response->getData()); - $this->assertTrue($response instanceof JSONResponse); } @@ -499,7 +486,6 @@ class ItemControllerTest extends ControllerTestUtility { $response = $this->controller->newItems(); $this->assertEquals($result, $response->getData()); - $this->assertTrue($response instanceof JSONResponse); } |