Skip to content
Snippets Groups Projects
Commit 883888bd authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #17240 from owncloud/do-not-rely-on-php-being-fast

Do not rely on actual time in unit tests
parents b88a0e70 422d088b
Branches
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment