summaryrefslogtreecommitdiffstats
path: root/tests/integration/db/ItemMapperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/db/ItemMapperTest.php')
-rw-r--r--tests/integration/db/ItemMapperTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php
index 82c5d880b..5c0ff1df2 100644
--- a/tests/integration/db/ItemMapperTest.php
+++ b/tests/integration/db/ItemMapperTest.php
@@ -24,6 +24,8 @@ class ItemMapperTest extends NewsIntegrationTest {
$item = new Item();
$item->setTitle('my title');
$item->setGuid('test');
+ $item->setFeedId(3);
+ $item->setUnread();
$created = $this->itemMapper->insert($item);
@@ -32,6 +34,8 @@ class ItemMapperTest extends NewsIntegrationTest {
$this->assertEquals($item->getTitle(), $fetched->getTitle());
$this->assertEquals($item->getGuid(), $fetched->getGuid());
$this->assertEquals($item->getGuidHash(), $fetched->getGuidHash());
+ $this->assertEquals($item->getFeedId(), $fetched->getFeedId());
+ $this->assertEquals($item->isRead(), $fetched->isRead());
}
} \ No newline at end of file