/** * testOmitPersonalTagsOnSearch * * @see 0010732: add "use personal tags" right to all applications */ public function testOmitPersonalTagsOnSearch() { $personalTag = $this->_getTag(Tinebase_Model_Tag::TYPE_PERSONAL); Tinebase_Tags::getInstance()->createTag($personalTag); $this->_removeRoleRight('Addressbook', Tinebase_Acl_Rights::USE_PERSONAL_TAGS); $filter = array('application' => 'Addressbook', 'grant' => Tinebase_Model_TagRight::VIEW_RIGHT, 'type' => Tinebase_Model_Tag::TYPE_PERSONAL); $result = $this->_instance->searchTags($filter, array()); $this->assertEquals(0, $result['totalCount']); }