/**
  * test read grant
  * 
  * @return Tinebase_Model_PersistentFilter
  */
 public function testReadGrant()
 {
     $filter = $this->testSaveSharedFavorite();
     $this->_restoreTestUser = Tinebase_Core::getUser();
     $sclever = Tinebase_User::getInstance()->getFullUserByLoginName('sclever');
     Tinebase_Core::set(Tinebase_Core::USER, $sclever);
     if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) {
         Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . ' Setting sclever (id: ' . $sclever->getId() . ') as current user');
     }
     $filterAsSeenBySclever = $this->_instance->get($filter->getId());
     $this->assertEquals($filter->name, $filterAsSeenBySclever->name);
     return $filterAsSeenBySclever;
 }
 /**
  * returns persistent filter identified by id
  * 
  * @param  string $_id
  * @return Tinebase_Model_Filter_FilterGroup
  */
 public static function getFilterById($_id)
 {
     $obj = new Tinebase_PersistentFilter();
     $persistentFilter = $obj->get($_id);
     return $persistentFilter->filters;
 }