diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-01 11:23:40 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-01 11:23:40 +0200 |
commit | bc54e6ff7cf6bb587feb5bf93b24b023a07a4123 (patch) | |
tree | ad5a45004bfc52b59b274f350abd76fd29fe5645 /apps/federation/lib/AppInfo/Application.php | |
parent | 3ffff08819365e6a38e0c7d381343f59bc2fc89c (diff) | |
download | nextcloud-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.php | 4 |
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) ); }); |