diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-12 22:15:58 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-12 22:16:13 +0200 |
commit | d0401257f666ad8cbda054c5e7ec46524a832636 (patch) | |
tree | a055045ea4b20e9a4e6b7b1082d4905d0a9459f4 /tests/unit/db | |
parent | 3df007e7c04f19562f02a6dc0a6a20bb624c7338 (diff) |
Fix #465
Diffstat (limited to 'tests/unit/db')
-rw-r--r-- | tests/unit/db/ItemTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/db/ItemTest.php b/tests/unit/db/ItemTest.php index 06ef0e6d3..14abdfc71 100644 --- a/tests/unit/db/ItemTest.php +++ b/tests/unit/db/ItemTest.php @@ -70,6 +70,7 @@ class ItemTest extends \PHPUnit_Framework_TestCase { $item->setUnread(); $item->setStarred(); $item->setLastModified(321); + $item->setFingerprint('fingerprint'); $this->assertEquals([ 'id' => 3, @@ -86,7 +87,8 @@ class ItemTest extends \PHPUnit_Framework_TestCase { 'unread' => true, 'starred' => true, 'lastModified' => 321, - 'rtl' => true + 'rtl' => true, + 'fingerprint' => 'fingerprint' ], $item->toAPI()); } @@ -107,6 +109,7 @@ class ItemTest extends \PHPUnit_Framework_TestCase { $item->setStatus(0); $item->setRtl(true); $item->setUnread(); + $item->setFingerprint('fingerprint'); $item->setStarred(); $item->setLastModified(321); @@ -126,7 +129,8 @@ class ItemTest extends \PHPUnit_Framework_TestCase { 'starred' => true, 'lastModified' => 321, 'rtl' => true, - 'intro' => 'this is a test' + 'intro' => 'this is a test', + 'fingerprint' => 'fingerprint' ], $item->jsonSerialize()); } |