/**
  * test update properties of asterisk SipPeer
  *
  */
 public function testUpdatePropertiesAsteriskSipPeer()
 {
     $test = $this->_getAsteriskSipPeer();
     $returned = $this->_json->saveAsteriskSipPeer($test->toArray());
     // update regseconds
     $now = Tinebase_DateTime::now();
     $data = array('regseconds' => $now);
     $updated = $this->_json->updatePropertiesAsteriskSipPeer($returned['id'], $data);
     //print_r($updated);
     date_default_timezone_set(Tinebase_Core::getUserTimezone());
     $now->setTimezone(Tinebase_Core::getUserTimezone());
     $nowConverted = $now->get(Tinebase_Record_Abstract::ISO8601LONG);
     date_default_timezone_set('UTC');
     $this->assertEquals($nowConverted, $updated['regseconds']);
 }