summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Reiter <ockham@raz.or.at>2014-09-08 19:58:43 +0200
committerBernhard Reiter <ockham@raz.or.at>2014-10-14 00:06:07 +0200
commit5471189fe6b8d2b4ef2608a57b7ea24518a1dcb8 (patch)
tree359b03ca796182e2bf9c874222853ae4d1ee24b5 /tests
parentcf6fb2c2e49718ad4b9120d42db28b42fb2ff038 (diff)
downloadnextcloud-server-5471189fe6b8d2b4ef2608a57b7ea24518a1dcb8.tar.gz
nextcloud-server-5471189fe6b8d2b4ef2608a57b7ea24518a1dcb8.zip
Implement Tag and TagMapper classes.
Subclassed from \OCP\AppFramework\Db\Entity and Mapper, respectively. This will allow us to also deal with shared tags.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/tags.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/tags.php b/tests/lib/tags.php
index 9195587f1dd..4d9b8558fd3 100644
--- a/tests/lib/tags.php
+++ b/tests/lib/tags.php
@@ -34,7 +34,8 @@ class Test_Tags extends PHPUnit_Framework_TestCase {
$this->objectType = uniqid('type_');
OC_User::createUser($this->user, 'pass');
OC_User::setUserId($this->user);
- $this->tagMgr = new OC\TagManager($this->user);
+ $this->tagMapper = new OC\Tagging\TagMapper(new OC\AppFramework\Db\Db());
+ $this->tagMgr = new OC\TagManager($this->tagMapper, $this->user);
}