summaryrefslogtreecommitdiffstats
path: root/tests/unit/service/ItemServiceTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/service/ItemServiceTest.php')
-rw-r--r--tests/unit/service/ItemServiceTest.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/unit/service/ItemServiceTest.php b/tests/unit/service/ItemServiceTest.php
index b9f23fee6..4f5672e20 100644
--- a/tests/unit/service/ItemServiceTest.php
+++ b/tests/unit/service/ItemServiceTest.php
@@ -301,7 +301,9 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase {
public function testStarDoesNotExist(){
- $this->setExpectedException('\OCA\News\Service\ServiceNotFoundException');
+ $this->setExpectedException(
+ '\OCA\News\Service\ServiceNotFoundException'
+ );
$this->mapper->expects($this->once())
->method('findByGuidHash')
->will($this->throwException(new DoesNotExistException('')));
@@ -377,9 +379,13 @@ class ItemServiceTest extends \PHPUnit_Framework_TestCase {
$this->mapper->expects($this->once())
->method('getNewestItemId')
->with($this->equalTo($this->user))
- ->will($this->throwException(new DoesNotExistException('There are no items')));
+ ->will($this->throwException(
+ new DoesNotExistException('There are no items'))
+ );
- $this->setExpectedException('\OCA\News\Service\ServiceNotFoundException');
+ $this->setExpectedException(
+ '\OCA\News\Service\ServiceNotFoundException'
+ );
$this->itemService->getNewestItemId($this->user);
}