summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-29 17:14:24 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-29 17:15:42 +0200
commit422d088bb973c6d47475ea0832c17b4e2639a29b (patch)
tree57dce6ee08a4b85459cd4b40d7928673621b440d /tests/lib
parentb88a0e7080cd5b1844cfb286b06744f3a2fead20 (diff)
downloadnextcloud-server-422d088bb973c6d47475ea0832c17b4e2639a29b.tar.gz
nextcloud-server-422d088bb973c6d47475ea0832c17b4e2639a29b.zip
Do not rely on actual time in unit tests
Ref https://github.com/owncloud/core/pull/17238#issuecomment-116724055
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/updater.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/updater.php b/tests/lib/updater.php
index 8d6a9d65b27..28577071b4c 100644
--- a/tests/lib/updater.php
+++ b/tests/lib/updater.php
@@ -149,7 +149,7 @@ class UpdaterTest extends \Test\TestCase {
$this->config
->expects($this->at(1))
->method('setAppValue')
- ->with('core', 'lastupdatedat', time());
+ ->with('core', 'lastupdatedat', $this->isType('integer'));
$this->config
->expects($this->at(3))
->method('getAppValue')
@@ -190,7 +190,7 @@ class UpdaterTest extends \Test\TestCase {
$this->config
->expects($this->at(1))
->method('setAppValue')
- ->with('core', 'lastupdatedat', time());
+ ->with('core', 'lastupdatedat', $this->isType('integer'));
$this->config
->expects($this->at(3))
->method('getAppValue')
@@ -232,7 +232,7 @@ class UpdaterTest extends \Test\TestCase {
$this->config
->expects($this->at(1))
->method('setAppValue')
- ->with('core', 'lastupdatedat', time());
+ ->with('core', 'lastupdatedat', $this->isType('integer'));
$this->config
->expects($this->at(3))
->method('getAppValue')
@@ -280,7 +280,7 @@ class UpdaterTest extends \Test\TestCase {
$this->config
->expects($this->at(1))
->method('setAppValue')
- ->with('core', 'lastupdatedat', time());
+ ->with('core', 'lastupdatedat', $this->isType('integer'));
$this->config
->expects($this->at(3))
->method('getAppValue')
@@ -319,7 +319,7 @@ class UpdaterTest extends \Test\TestCase {
$this->config
->expects($this->at(1))
->method('setAppValue')
- ->with('core', 'lastupdatedat', time());
+ ->with('core', 'lastupdatedat', $this->isType('integer'));
$this->config
->expects($this->at(3))
->method('getAppValue')