From 070abc32e5dd5f64db655330e210178d15a97c72 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 20 Mar 2013 11:05:15 +0100 Subject: finished item --- tests/db/ItemTest.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests/db') diff --git a/tests/db/ItemTest.php b/tests/db/ItemTest.php index a590856c4..792085733 100644 --- a/tests/db/ItemTest.php +++ b/tests/db/ItemTest.php @@ -37,10 +37,32 @@ class ItemTest extends \PHPUnit_Framework_TestCase { $this->item->setStatus(0); } + public function testSetRead(){ $this->item->setRead(); $this->assertTrue($this->item->isRead()); } + + public function testSetUnread(){ + $this->item->setUnread(); + + $this->assertTrue($this->item->isUnread()); + } + + + public function testSetStarred(){ + $this->item->setStarred(); + + $this->assertTrue($this->item->isStarred()); + } + + + public function testSetUnstarred(){ + $this->item->setUnstarred(); + + $this->assertTrue($this->item->isUnstarred()); + } + } \ No newline at end of file -- cgit v1.2.3