summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/ItemApiControllerTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 18:19:23 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 18:19:23 +0200
commit66c73a96ac2dda076bcfe0dc0a1ca2a7e169149d (patch)
treedc0318fa459e4f313217ee38e4bc63524513d721 /tests/unit/controller/ItemApiControllerTest.php
parentf5e64d35c05b14016eb4fffff7199386a97a9b43 (diff)
first try to set indention limit at 80 characters in php
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');