diff options
Diffstat (limited to 'tests/db/ItemTest.php')
-rw-r--r-- | tests/db/ItemTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
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 |