From: Robin Appelman Date: Mon, 20 Oct 2014 13:09:19 +0000 (+0200) Subject: Fix tags unit test X-Git-Tag: v8.0.0alpha1~453^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0dcb83203910a8de5bcfaca8cbad9fef1845a2ea;p=nextcloud-server.git Fix tags unit test --- diff --git a/tests/lib/tags.php b/tests/lib/tags.php index 2f7a1e817f8..57b64f1cd36 100644 --- a/tests/lib/tags.php +++ b/tests/lib/tags.php @@ -34,7 +34,7 @@ class Test_Tags extends PHPUnit_Framework_TestCase { $this->objectType = uniqid('type_'); OC_User::createUser($this->user, 'pass'); OC_User::setUserId($this->user); - $this->tagMapper = new OC\Tagging\TagMapper(new OC\AppFramework\Db\Db()); + $this->tagMapper = new OC\Tagging\TagMapper(\OC::$server->getDb()); $this->tagMgr = new OC\TagManager($this->tagMapper, $this->user); }