Example #1
0
 /**
  * @depends testUpdateCalendarAndFetch
  */
 function testUpdateCalendarUnknownProperty()
 {
     $backend = new PDO($this->pdo);
     //Creating a new calendar
     $newId = $backend->createCalendar('principals/user2', 'somerandomid', array());
     // Updating the calendar
     $result = $backend->updateCalendar($newId, array('{DAV:}displayname' => 'myCalendar', '{DAV:}yourmom' => 'wittycomment'));
     // Verifying the result of the update
     $this->assertEquals(array('403' => array('{DAV:}yourmom' => null), '424' => array('{DAV:}displayname' => null)), $result);
 }
 /**
  * @depends testUpdateCalendarAndFetch
  */
 function testUpdateCalendarUnknownProperty()
 {
     $backend = new PDO($this->pdo);
     //Creating a new calendar
     $newId = $backend->createCalendar('principals/user2', 'somerandomid', []);
     $propPatch = new PropPatch(['{DAV:}displayname' => 'myCalendar', '{DAV:}yourmom' => 'wittycomment']);
     // Updating the calendar
     $backend->updateCalendar($newId, $propPatch);
     $propPatch->commit();
     // Verifying the result of the update
     $this->assertEquals(['{DAV:}yourmom' => 403, '{DAV:}displayname' => 424], $propPatch->getResult());
 }