summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/ItemApiControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/controller/ItemApiControllerTest.php')
-rw-r--r--tests/unit/controller/ItemApiControllerTest.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/unit/controller/ItemApiControllerTest.php b/tests/unit/controller/ItemApiControllerTest.php
index 12b9d3225..8ab35010a 100644
--- a/tests/unit/controller/ItemApiControllerTest.php
+++ b/tests/unit/controller/ItemApiControllerTest.php
@@ -135,7 +135,9 @@ class ItemApiControllerTest extends \PHPUnit_Framework_TestCase {
public function testReadDoesNotExist() {
$this->itemService->expects($this->once())
->method('read')
- ->will($this->throwException(new ServiceNotFoundException($this->msg)));
+ ->will($this->throwException(
+ new ServiceNotFoundException($this->msg))
+ );
$response = $this->itemAPI->read(2);
@@ -161,7 +163,9 @@ class ItemApiControllerTest extends \PHPUnit_Framework_TestCase {
public function testUnreadDoesNotExist() {
$this->itemService->expects($this->once())
->method('read')
- ->will($this->throwException(new ServiceNotFoundException($this->msg)));
+ ->will($this->throwException(
+ new ServiceNotFoundException($this->msg))
+ );
$response = $this->itemAPI->unread(2);
@@ -188,7 +192,9 @@ class ItemApiControllerTest extends \PHPUnit_Framework_TestCase {
public function testStarDoesNotExist() {
$this->itemService->expects($this->once())
->method('star')
- ->will($this->throwException(new ServiceNotFoundException($this->msg)));
+ ->will($this->throwException(
+ new ServiceNotFoundException($this->msg))
+ );
$response = $this->itemAPI->star(2, 'test');
@@ -215,7 +221,9 @@ class ItemApiControllerTest extends \PHPUnit_Framework_TestCase {
public function testUnstarDoesNotExist() {
$this->itemService->expects($this->once())
->method('star')
- ->will($this->throwException(new ServiceNotFoundException($this->msg)));
+ ->will($this->throwException(
+ new ServiceNotFoundException($this->msg))
+ );
$response = $this->itemAPI->unstar(2, 'test');