/**
  * get system account
  *
  * @return array
  */
 protected function _getSystemAccount()
 {
     $results = $this->_json->searchAccounts(array());
     $this->assertGreaterThan(0, $results['totalcount']);
     $system = array();
     foreach ($results['results'] as $result) {
         if ($result['name'] == Tinebase_Core::getUser()->accountLoginName . '@' . $this->_mailDomain) {
             $system = $result;
         }
     }
     return $system;
 }
Beispiel #2
0
 /**
  * get system account
  * 
  * @return array
  */
 protected function _getSystemAccount()
 {
     $results = $this->_json->searchAccounts(array());
     $this->assertGreaterThan(0, $results['totalcount']);
     $system = array();
     foreach ($results['results'] as $result) {
         if ($result['name'] == 'unittest@' . $this->_mailDomain) {
             $system = $result;
         }
     }
     return $system;
 }