Esempio n. 1
0
 function testSetUnset()
 {
     $propFind = new PropFind('foo', ['{DAV:}displayname']);
     $propFind->set('{DAV:}displayname', 'bar');
     $propFind->set('{DAV:}displayname', null);
     $this->assertEquals([200 => [], 404 => ['{DAV:}displayname' => null]], $propFind->getResultForMultiStatus());
 }
 /**
  * The assumption in these tests is that a PROPFIND is going on, and to
  * fetch the sync-token, the event handler is just able to use the existing
  * result.
  *
  * @dataProvider data
  */
 function testAlreadyThere1($name, $value)
 {
     $propFind = new PropFind('foo', ['{http://calendarserver.org/ns/}getctag', $name]);
     $propFind->set($name, $value);
     $corePlugin = new CorePlugin();
     $corePlugin->propFindLate($propFind, new SimpleCollection('hi'));
     $this->assertEquals("hello", $propFind->get('{http://calendarserver.org/ns/}getctag'));
 }