From 5471189fe6b8d2b4ef2608a57b7ea24518a1dcb8 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Mon, 8 Sep 2014 19:58:43 +0200 Subject: Implement Tag and TagMapper classes. Subclassed from \OCP\AppFramework\Db\Entity and Mapper, respectively. This will allow us to also deal with shared tags. --- tests/lib/tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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); } -- cgit v1.2.3