diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-13 14:14:38 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-13 14:14:38 +0100 |
commit | 631a1e2baf5e8332bd3034de0022669eca0636fd (patch) | |
tree | cb34cd1183d25e4d40f399879381d0c08a2c376e /tests/unit/db | |
parent | b793f892463a691a4b25bc59add168669720850a (diff) |
dont set guidHash when setting guid to avoid overwriting different guid hashes that come from the db
Diffstat (limited to 'tests/unit/db')
-rw-r--r-- | tests/unit/db/ItemTest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/unit/db/ItemTest.php b/tests/unit/db/ItemTest.php index 6d1a1d87a..4ced884c8 100644 --- a/tests/unit/db/ItemTest.php +++ b/tests/unit/db/ItemTest.php @@ -166,6 +166,7 @@ class ItemTest extends \PHPUnit_Framework_TestCase { private function createImportItem($isRead) { $item = new Item(); $item->setGuid('guid'); + $item->setGuidHash('guid'); $item->setUrl('https://google'); $item->setTitle('title'); $item->setAuthor('author'); @@ -260,13 +261,6 @@ class ItemTest extends \PHPUnit_Framework_TestCase { } - public function testSetGuidUpdatesHash() { - $item = new Item(); - $item->setGuid('http://test'); - $this->assertEquals('http://test', $item->getGuidHash()); - } - - public function testMakeLinksInBodyOpenNewTab() { $item = new Item(); $item->setBody("<a href=\"test\">ha</a>"); |