diff options
Diffstat (limited to 'tests/unit/db')
-rw-r--r-- | tests/unit/db/ItemTest.php | 6 |
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()); } } |