aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Share20/DefaultShareProviderTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-21 13:43:39 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-21 13:43:39 +0200
commiteaf152efebc1a75e5a61e8d8c362d9fe29841c5c (patch)
treecb7db36eb9fd157c5d808183e2f48d62e259330b /tests/lib/Share20/DefaultShareProviderTest.php
parent13168ffbbaaa52fed52b2c0b83298ede2fd369c7 (diff)
downloadnextcloud-server-eaf152efebc1a75e5a61e8d8c362d9fe29841c5c.tar.gz
nextcloud-server-eaf152efebc1a75e5a61e8d8c362d9fe29841c5c.zip
Fix DateTime comparisson
Datetime now returns microseconds. But if the database doesn't store those comparing them for equality most likely fails. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Share20/DefaultShareProviderTest.php')
-rw-r--r--tests/lib/Share20/DefaultShareProviderTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Share20/DefaultShareProviderTest.php b/tests/lib/Share20/DefaultShareProviderTest.php
index 0ae2ef922fc..778c1cb5722 100644
--- a/tests/lib/Share20/DefaultShareProviderTest.php
+++ b/tests/lib/Share20/DefaultShareProviderTest.php
@@ -743,7 +743,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
$this->assertSame($path, $share2->getNode());
$this->assertSame('password', $share2->getPassword());
$this->assertSame('token', $share2->getToken());
- $this->assertEquals($expireDate, $share2->getExpirationDate());
+ $this->assertEquals($expireDate->getTimestamp(), $share2->getExpirationDate()->getTimestamp());
}
public function testGetShareByToken() {