summaryrefslogtreecommitdiffstats
path: root/tests/unit/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-11-25 19:04:05 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-11-25 19:52:22 +0100
commit052178a79f9099d1ce3c36e56334cdc15911ef09 (patch)
treea106b873613c6d49579337822316771ef9606028 /tests/unit/db
parent52b701c8d484362f47a8c57d8e5005d2bc6d6e6f (diff)
also consider enclosure for fingerprint
Diffstat (limited to 'tests/unit/db')
-rw-r--r--tests/unit/db/ItemTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/db/ItemTest.php b/tests/unit/db/ItemTest.php
index 89b14591e..831b8d624 100644
--- a/tests/unit/db/ItemTest.php
+++ b/tests/unit/db/ItemTest.php
@@ -293,13 +293,17 @@ class ItemTest extends \PHPUnit_Framework_TestCase {
$title = 'a';
$body = 'b';
$url = 'http://google.com';
+ $link = 'ho';
+
$item = new Item();
$item->setBody($body);
$item->setTitle($title);
$item->setUrl($url);
+ $item->setEnclosureLink($link);
$item->generateSearchIndex();
- $this->assertEquals(md5($title . $url . $body), $item->getFingerprint());
+ $this->assertEquals(md5($title . $url . $body . $link),
+ $item->getFingerprint());
}
}