summaryrefslogtreecommitdiffstats
path: root/apps/federation/lib/AppInfo/Application.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 11:23:40 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 11:23:40 +0200
commitbc54e6ff7cf6bb587feb5bf93b24b023a07a4123 (patch)
treead5a45004bfc52b59b274f350abd76fd29fe5645 /apps/federation/lib/AppInfo/Application.php
parent3ffff08819365e6a38e0c7d381343f59bc2fc89c (diff)
downloadnextcloud-server-bc54e6ff7cf6bb587feb5bf93b24b023a07a4123.tar.gz
nextcloud-server-bc54e6ff7cf6bb587feb5bf93b24b023a07a4123.zip
Use ITimeFactory
* Inject the timefacotry so we can mock it properly in the tests. * Extended unit tests to cover the new paths Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federation/lib/AppInfo/Application.php')
-rw-r--r--apps/federation/lib/AppInfo/Application.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/federation/lib/AppInfo/Application.php b/apps/federation/lib/AppInfo/Application.php
index 55647622915..0525245d9c4 100644
--- a/apps/federation/lib/AppInfo/Application.php
+++ b/apps/federation/lib/AppInfo/Application.php
@@ -32,6 +32,7 @@ use OCA\Federation\Middleware\AddServerMiddleware;
use OCA\Federation\SyncFederationAddressBooks;
use OCA\Federation\TrustedServers;
use OCP\AppFramework\IAppContainer;
+use OCP\AppFramework\Utility\ITimeFactory;
use OCP\SabrePluginEvent;
use OCP\Util;
use Sabre\DAV\Auth\Plugin;
@@ -74,7 +75,8 @@ class Application extends \OCP\AppFramework\App {
$server->getJobList(),
$server->getSecureRandom(),
$server->getConfig(),
- $server->getEventDispatcher()
+ $server->getEventDispatcher(),
+ $server->query(ITimeFactory::class)
);
});