From 09f60e75c90e5734a3b11a0cca944bd42bc41665 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 11 Sep 2013 16:42:03 +0200 Subject: #342 implement export --- tests/unit/businesslayer/ItemBusinessLayerTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/unit/businesslayer') diff --git a/tests/unit/businesslayer/ItemBusinessLayerTest.php b/tests/unit/businesslayer/ItemBusinessLayerTest.php index 21a776c05..5dc6c9895 100644 --- a/tests/unit/businesslayer/ItemBusinessLayerTest.php +++ b/tests/unit/businesslayer/ItemBusinessLayerTest.php @@ -348,6 +348,18 @@ class ItemBusinessLayerTest extends \OCA\AppFramework\Utility\TestUtility { } + public function testGetUnreadOrStarred(){ + $star = 18; + + $this->mapper->expects($this->once()) + ->method('findAllUnreadOrStarred') + ->with($this->equalTo($this->user)) + ->will($this->returnValue($star)); + + $result = $this->itemBusinessLayer->getUnreadOrStarred($this->user); + + $this->assertEquals($star, $result); + } } -- cgit v1.2.3