Esempio n. 1
0
 public function testSyncSupport()
 {
     $calendarId = $this->createTestCalendar();
     // fist call without synctoken
     $changes = $this->backend->getChangesForCalendar($calendarId, '', 1);
     $syncToken = $changes['syncToken'];
     // add a change
     $event = $this->createEvent($calendarId, '20130912T130000Z', '20130912T140000Z');
     // look for changes
     $changes = $this->backend->getChangesForCalendar($calendarId, $syncToken, 1);
     $this->assertEquals($event, $changes['added'][0]);
 }