summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-10-31 21:27:31 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-10-31 21:27:31 +0100
commite225a7bfd33f4ff986c9adf1f237a1c9c6b597a4 (patch)
treeb156bee341ca43da57c5de37278fd9a6758dd487 /apps/files_trashbin/tests
parent78d00ff0852a6199cc7ca33db6308f7bdd09b5a6 (diff)
downloadnextcloud-server-e225a7bfd33f4ff986c9adf1f237a1c9c6b597a4.tar.gz
nextcloud-server-e225a7bfd33f4ff986c9adf1f237a1c9c6b597a4.zip
fixup! fix tests?
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/tests')
-rw-r--r--apps/files_trashbin/tests/TrashbinTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php
index 590e044b728..3263feb4a95 100644
--- a/apps/files_trashbin/tests/TrashbinTest.php
+++ b/apps/files_trashbin/tests/TrashbinTest.php
@@ -152,7 +152,9 @@ class TrashbinTest extends \Test\TestCase {
*/
public function testExpireOldFiles() {
- $currentTime = time();
+ /** @var \OCP\AppFramework\Utility\ITimeFactory $time */
+ $time = \OC::$server->query(\OCP\AppFramework\Utility\ITimeFactory::class);
+ $currentTime = $time->getTime();
$expireAt = $currentTime - 2 * 24 * 60 * 60;
$expiredDate = $currentTime - 3 * 24 * 60 * 60;