Esempio n. 1
0
 /**
  * testDeleteEvent
  */
 public function testDeleteEvent()
 {
     $eventData = $this->testCreateEvent();
     $this->_uit->deleteEvents(array($eventData['id']));
     $this->setExpectedException('Tinebase_Exception_NotFound');
     $this->_uit->getEvent($eventData['id']);
 }
 /**
  * testExdateDeleteThisAndFuture
  * 
  * @see 0007382: allow to edit / delete the whole series / thisandfuture when editing/deleting recur exceptions
  */
 public function testExdateDeleteThisAndFuture()
 {
     $events = $this->testCreateRecurException();
     $exception = $this->_getException($events, 1);
     $this->_uit->deleteEvents(array($exception['id']), Calendar_Model_Event::RANGE_THISANDFUTURE);
     $search = $this->_uit->searchEvents($events['filter'], NULL);
     $this->assertEquals(1, $search['totalcount'], '1 event should remain: ' . print_r($search, TRUE));
 }