summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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');