diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-11 16:42:03 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-12 01:00:32 +0200 |
commit | 09f60e75c90e5734a3b11a0cca944bd42bc41665 (patch) | |
tree | 8ecdc41cd6bb7c2b338e8e82b2b1e090b4d82ce4 /tests/unit/businesslayer | |
parent | 24cab805e7484a5d206974d05f8de38641435f8c (diff) |
#342 implement export
Diffstat (limited to 'tests/unit/businesslayer')
-rw-r--r-- | tests/unit/businesslayer/ItemBusinessLayerTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
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); + } } |