Do not rely on actual time in unit tests
Ref https://github.com/owncloud/core/pull/17238#issuecomment-116724055
This commit is contained in:
parent
b88a0e7080
commit
422d088bb9
|
@ -149,7 +149,7 @@ class UpdaterTest extends \Test\TestCase {
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(1))
|
->expects($this->at(1))
|
||||||
->method('setAppValue')
|
->method('setAppValue')
|
||||||
->with('core', 'lastupdatedat', time());
|
->with('core', 'lastupdatedat', $this->isType('integer'));
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(3))
|
->expects($this->at(3))
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
|
@ -190,7 +190,7 @@ class UpdaterTest extends \Test\TestCase {
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(1))
|
->expects($this->at(1))
|
||||||
->method('setAppValue')
|
->method('setAppValue')
|
||||||
->with('core', 'lastupdatedat', time());
|
->with('core', 'lastupdatedat', $this->isType('integer'));
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(3))
|
->expects($this->at(3))
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
|
@ -232,7 +232,7 @@ class UpdaterTest extends \Test\TestCase {
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(1))
|
->expects($this->at(1))
|
||||||
->method('setAppValue')
|
->method('setAppValue')
|
||||||
->with('core', 'lastupdatedat', time());
|
->with('core', 'lastupdatedat', $this->isType('integer'));
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(3))
|
->expects($this->at(3))
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
|
@ -280,7 +280,7 @@ class UpdaterTest extends \Test\TestCase {
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(1))
|
->expects($this->at(1))
|
||||||
->method('setAppValue')
|
->method('setAppValue')
|
||||||
->with('core', 'lastupdatedat', time());
|
->with('core', 'lastupdatedat', $this->isType('integer'));
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(3))
|
->expects($this->at(3))
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
|
@ -319,7 +319,7 @@ class UpdaterTest extends \Test\TestCase {
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(1))
|
->expects($this->at(1))
|
||||||
->method('setAppValue')
|
->method('setAppValue')
|
||||||
->with('core', 'lastupdatedat', time());
|
->with('core', 'lastupdatedat', $this->isType('integer'));
|
||||||
$this->config
|
$this->config
|
||||||
->expects($this->at(3))
|
->expects($this->at(3))
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
|
|
Loading…
Reference in New Issue