From 422d088bb973c6d47475ea0832c17b4e2639a29b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 29 Jun 2015 17:14:24 +0200 Subject: [PATCH] Do not rely on actual time in unit tests Ref https://github.com/owncloud/core/pull/17238#issuecomment-116724055 --- tests/lib/updater.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/lib/updater.php b/tests/lib/updater.php index 8d6a9d65b2..28577071b4 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')