summaryrefslogtreecommitdiffstats
path: root/tests/db
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-20 11:05:15 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-20 11:05:15 +0100
commit070abc32e5dd5f64db655330e210178d15a97c72 (patch)
tree0ad613e2dbc0c9029bda6d019fccebb0ac659d1d /tests/db
parentfa3a2e469db519571fa7dc13bc832e7de1f8057f (diff)
finished item
Diffstat (limited to 'tests/db')
-rw-r--r--tests/db/ItemTest.php22
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