]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tags unit test
authorRobin Appelman <icewind@owncloud.com>
Mon, 20 Oct 2014 13:09:19 +0000 (15:09 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 22 Oct 2014 10:29:53 +0000 (12:29 +0200)
tests/lib/tags.php

index 2f7a1e817f84e2fa9e5913701e4089615356cbb8..57b64f1cd3686a838d260c5aabba79edb4aaf300 100644 (file)
@@ -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);
 
        }