aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2017-03-02 14:17:20 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-19 22:01:46 -0600
commitc96486cfaec95d75a8bb9069481528982ec1b98f (patch)
treedd8029b7ac9838d57338c8a7be7cb28c2846f21a /tests/lib
parent4e1aca4e3c77d71913a512332a5b3d99f291a223 (diff)
downloadnextcloud-server-c96486cfaec95d75a8bb9069481528982ec1b98f.tar.gz
nextcloud-server-c96486cfaec95d75a8bb9069481528982ec1b98f.zip
test setTagGroups with empty groupids
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/SystemTag/SystemTagManagerTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/SystemTag/SystemTagManagerTest.php b/tests/lib/SystemTag/SystemTagManagerTest.php
index e697e373465..61fac99ca6c 100644
--- a/tests/lib/SystemTag/SystemTagManagerTest.php
+++ b/tests/lib/SystemTag/SystemTagManagerTest.php
@@ -517,6 +517,15 @@ class SystemTagManagerTest extends TestCase {
}
/**
+ * empty groupIds should be ignored
+ */
+ public function testEmptyTagGroup() {
+ $tag1 = $this->tagManager->createTag('tag1', true, false);
+ $this->tagManager->setTagGroups($tag1, ['']);
+ $this->assertEquals([], $this->tagManager->getTagGroups($tag1));
+ }
+
+ /**
* @param ISystemTag $tag1
* @param ISystemTag $tag2
*/