summaryrefslogtreecommitdiffstats
path: root/tests/lib/user
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-28 11:59:26 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-11 13:36:46 +0200
commitaa85edd2242c696954c64799e7880f7a3d39ca83 (patch)
tree06bfb0fd7b96b79da434794a033b0a900e2fd281 /tests/lib/user
parent8cc5f6036f6ff1377077da0eed1cf4350db4b7e6 (diff)
downloadnextcloud-server-aa85edd2242c696954c64799e7880f7a3d39ca83.tar.gz
nextcloud-server-aa85edd2242c696954c64799e7880f7a3d39ca83.zip
increase token column width
add some range to time() assertions
Diffstat (limited to 'tests/lib/user')
-rw-r--r--tests/lib/user/session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/user/session.php b/tests/lib/user/session.php
index ca03e62c3a6..ab252357d85 100644
--- a/tests/lib/user/session.php
+++ b/tests/lib/user/session.php
@@ -59,7 +59,7 @@ class Session extends \Test\TestCase {
->will($this->returnValue(true));
$session->expects($this->at(2))
->method('set')
- ->with('last_login_check', time());
+ ->with('last_login_check', $this->equalTo(time(), 10));
$session->expects($this->at(3))
->method('get')
@@ -70,7 +70,7 @@ class Session extends \Test\TestCase {
->with($token);
$session->expects($this->at(4))
->method('set')
- ->with('last_token_update', time());
+ ->with('last_token_update', $this->equalTo(time(), 10));
$manager->expects($this->any())
->method('get')