summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-19 10:14:15 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-26 11:54:25 +0200
commitf4186d3dfccc80c6a819c94ece8883c981a9d013 (patch)
tree4feb60171da11c45bb7196c238641789e4043585 /apps/files_sharing
parent937586a3f0260bbc976d13637a708c530c708517 (diff)
downloadnextcloud-server-f4186d3dfccc80c6a819c94ece8883c981a9d013.tar.gz
nextcloud-server-f4186d3dfccc80c6a819c94ece8883c981a9d013.zip
Fix wrong value for datetime field
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/api/shareestest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/api/shareestest.php b/apps/files_sharing/tests/api/shareestest.php
index 675cc7bede0..c856b93d0fe 100644
--- a/apps/files_sharing/tests/api/shareestest.php
+++ b/apps/files_sharing/tests/api/shareestest.php
@@ -847,7 +847,7 @@ class ShareesTest extends TestCase {
'permissions' => $queryBuilder->expr()->literal(0),
'stime' => $queryBuilder->expr()->literal(0),
'accepted' => $queryBuilder->expr()->literal(0),
- 'expiration' => $queryBuilder->expr()->literal(''),
+ 'expiration' => $queryBuilder->createParameter('expiration'),
'token' => $queryBuilder->expr()->literal(''),
'mail_send' => $queryBuilder->expr()->literal(0),
])
@@ -857,6 +857,7 @@ class ShareesTest extends TestCase {
'uid_owner' => $owner,
'parent' => $parent,
])
+ ->setParameter('expiration', null, 'datetime')
->execute();
return $connection->lastInsertId('share');
}