summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-20 01:15:24 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-20 01:15:24 +0200
commit1944d9b3abb5f3f20fa5e2ba2004dbd7994bb13f (patch)
tree51684f9a9b3a34deaebaec0fe00eede1c8c833b3 /apps/dav/tests
parentf4a4578f0de9cd0e41786b1af20ca642af390101 (diff)
downloadnextcloud-server-1944d9b3abb5f3f20fa5e2ba2004dbd7994bb13f.tar.gz
nextcloud-server-1944d9b3abb5f3f20fa5e2ba2004dbd7994bb13f.zip
Use magic DI
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/AppInfo/ApplicationTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/AppInfo/ApplicationTest.php b/apps/dav/tests/unit/AppInfo/ApplicationTest.php
index d5fb4e811d2..8656ce93519 100644
--- a/apps/dav/tests/unit/AppInfo/ApplicationTest.php
+++ b/apps/dav/tests/unit/AppInfo/ApplicationTest.php
@@ -24,6 +24,8 @@
namespace OCA\DAV\Tests\unit\AppInfo;
use OCA\DAV\AppInfo\Application;
+use OCA\DAV\CardDAV\CardDavBackend;
+use OCA\DAV\CardDAV\ContactsManager;
use OCP\Contacts\IManager;
use Test\TestCase;
@@ -40,9 +42,9 @@ class ApplicationTest extends TestCase {
$c = $app->getContainer();
// assert service instances in the container are properly setup
- $s = $c->query('ContactsManager');
+ $s = $c->query(ContactsManager::class);
$this->assertInstanceOf('OCA\DAV\CardDAV\ContactsManager', $s);
- $s = $c->query('CardDavBackend');
+ $s = $c->query(CardDavBackend::class);
$this->assertInstanceOf('OCA\DAV\CardDAV\CardDavBackend', $s);
}