summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-11-30 09:42:11 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-11-30 17:14:47 +0100
commit23046ca5b7484b69ffe89b947d84f0b5cf2222ca (patch)
treef89be00a835526a51cd4c6f0b22dc56b5e1e688f /apps/files/tests
parente9094b8a41e81fbd4f86aae5a4cadcab0674d93c (diff)
downloadnextcloud-server-23046ca5b7484b69ffe89b947d84f0b5cf2222ca.tar.gz
nextcloud-server-23046ca5b7484b69ffe89b947d84f0b5cf2222ca.zip
Inject the database connection
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/activitytest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/tests/activitytest.php b/apps/files/tests/activitytest.php
index 6a3424e727a..59c020c9042 100644
--- a/apps/files/tests/activitytest.php
+++ b/apps/files/tests/activitytest.php
@@ -25,6 +25,12 @@ namespace OCA\Files\Tests;
use OCA\Files\Activity;
use Test\TestCase;
+/**
+ * Class ActivityTest
+ *
+ * @group DB
+ * @package OCA\Files\Tests
+ */
class ActivityTest extends TestCase {
/** @var \OC\ActivityManager */
@@ -95,6 +101,7 @@ class ActivityTest extends TestCase {
$this->getMockBuilder('OCP\IURLGenerator')->disableOriginalConstructor()->getMock(),
$this->activityManager,
$this->activityHelper,
+ \OC::$server->getDatabaseConnection(),
$this->config
);