summaryrefslogtreecommitdiffstats
path: root/tests/unit/controller/FolderApiControllerTest.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/FolderApiControllerTest.php
parentf5e64d35c05b14016eb4fffff7199386a97a9b43 (diff)
first try to set indention limit at 80 characters in php
Diffstat (limited to 'tests/unit/controller/FolderApiControllerTest.php')
-rw-r--r--tests/unit/controller/FolderApiControllerTest.php32
1 files changed, 26 insertions, 6 deletions
diff --git a/tests/unit/controller/FolderApiControllerTest.php b/tests/unit/controller/FolderApiControllerTest.php
index c0371661a..550cd298c 100644
--- a/tests/unit/controller/FolderApiControllerTest.php
+++ b/tests/unit/controller/FolderApiControllerTest.php
@@ -130,7 +130,9 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase {
$data = $response->getData();
$this->assertEquals($msg, $data['message']);
- $this->assertEquals(Http::STATUS_UNPROCESSABLE_ENTITY, $response->getStatus());
+ $this->assertEquals(
+ Http::STATUS_UNPROCESSABLE_ENTITY, $response->getStatus()
+ );
}
@@ -149,7 +151,11 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase {
$this->folderService->expects($this->once())
->method('delete')
- ->will($this->throwException(new ServiceNotFoundException($this->msg)));
+ ->will(
+ $this->throwException(
+ new ServiceNotFoundException($this->msg)
+ )
+ );
$response = $this->folderAPI->delete($folderId);
@@ -178,7 +184,11 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase {
$this->folderService->expects($this->once())
->method('rename')
- ->will($this->throwException(new ServiceNotFoundException($this->msg)));
+ ->will(
+ $this->throwException(
+ new ServiceNotFoundException($this->msg)
+ )
+ );
$response = $this->folderAPI->update($folderId, $folderName);
@@ -194,7 +204,11 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase {
$this->folderService->expects($this->once())
->method('rename')
- ->will($this->throwException(new ServiceConflictException($this->msg)));
+ ->will(
+ $this->throwException(
+ new ServiceConflictException($this->msg)
+ )
+ );
$response = $this->folderAPI->update($folderId, $folderName);
@@ -210,13 +224,19 @@ class FolderApiControllerTest extends \PHPUnit_Framework_TestCase {
$this->folderService->expects($this->once())
->method('rename')
- ->will($this->throwException(new ServiceValidationException($this->msg)));
+ ->will(
+ $this->throwException(
+ new ServiceValidationException($this->msg)
+ )
+ );
$response = $this->folderAPI->update($folderId, $folderName);
$data = $response->getData();
$this->assertEquals($this->msg, $data['message']);
- $this->assertEquals(Http::STATUS_UNPROCESSABLE_ENTITY, $response->getStatus());
+ $this->assertEquals(
+ Http::STATUS_UNPROCESSABLE_ENTITY, $response->getStatus()
+ );
}