summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-05 15:36:59 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-05 15:36:59 +0100
commitad295ba8bf44ed99980fbef1dfe033249a5ba20c (patch)
tree5ef9fd8335fefac3fe50df730d8efdd90d8beac2 /tests
parent49690031a531732cda42f572823e4ec5b7786da7 (diff)
more testing
Diffstat (limited to 'tests')
-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