summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-05-28 12:49:48 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-05-28 12:49:48 +0200
commit782896cb44c6d64af088c951768d6ec1fb0b0f9f (patch)
tree94a8c06287e05a84a789d515d3fb0aaf45fe759a /tests
parenta92d104327a34c0c64ac0443a2c39dc29749a15c (diff)
Add content hash to items
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/ItemTest.php4
-rw-r--r--tests/unit/upgrade/UpgradeTest.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/db/ItemTest.php b/tests/unit/db/ItemTest.php
index 14abdfc71..b7bf76180 100644
--- a/tests/unit/db/ItemTest.php
+++ b/tests/unit/db/ItemTest.php
@@ -71,6 +71,7 @@ class ItemTest extends \PHPUnit_Framework_TestCase {
$item->setStarred();
$item->setLastModified(321);
$item->setFingerprint('fingerprint');
+ $item->setContentHash('contentHash');
$this->assertEquals([
'id' => 3,
@@ -88,7 +89,8 @@ class ItemTest extends \PHPUnit_Framework_TestCase {
'starred' => true,
'lastModified' => 321,
'rtl' => true,
- 'fingerprint' => 'fingerprint'
+ 'fingerprint' => 'fingerprint',
+ 'contentHash' => 'contentHash'
], $item->toAPI());
}
diff --git a/tests/unit/upgrade/UpgradeTest.php b/tests/unit/upgrade/UpgradeTest.php
index f2d2485f0..a3d473b63 100644
--- a/tests/unit/upgrade/UpgradeTest.php
+++ b/tests/unit/upgrade/UpgradeTest.php
@@ -49,7 +49,7 @@ class UpgradeTest extends \PHPUnit_Framework_TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with($this->equalTo('news'), $this->equalTo('installed_version'))
- ->will($this->returnValue('8.7.3'));
+ ->will($this->returnValue('8.9.0'));
$this->service->expects($this->once())
->method('generateSearchIndices');
@@ -61,7 +61,7 @@ class UpgradeTest extends \PHPUnit_Framework_TestCase {
$this->config->expects($this->once())
->method('getAppValue')
->with($this->equalTo('news'), $this->equalTo('installed_version'))
- ->will($this->returnValue('8.7.4'));
+ ->will($this->returnValue('8.9.1'));
$this->service->expects($this->never())
->method('generateSearchIndices');