Merge pull request #17240 from owncloud/do-not-rely-on-php-being-fast
Do not rely on actual time in unit tests
This commit is contained in:
commit
883888bdc6
1 changed files with 5 additions and 5 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue