Definition at line 7 of file PluginTest.php.
◆ testInit()
Sabre\CalDAV\Subscriptions\PluginTest::testInit |
( |
| ) |
|
Definition at line 9 of file PluginTest.php.
9 {
10
11 $server = new \Sabre\DAV\Server();
13
15
16 $this->assertEquals(
17 '{http://calendarserver.org/ns/}subscribed',
18 $server->resourceTypeMapping[
'Sabre\\CalDAV\\Subscriptions\\ISubscription']
19 );
20 $this->assertEquals(
21 'Sabre\\DAV\\Xml\\Property\\Href',
22 $server->xml->elementMap[
'{http://calendarserver.org/ns/}source']
23 );
24
25 $this->assertEquals(
26 ['calendarserver-subscribed'],
28 );
29
30 $this->assertEquals(
31 'subscriptions',
32 $plugin->getPluginInfo()[
'name']
33 );
34
35 }
References Sabre\CalDAV\PluginTest\$plugin, and Sabre\CalDAV\PluginTest\$server.
◆ testPropFind()
Sabre\CalDAV\Subscriptions\PluginTest::testPropFind |
( |
| ) |
|
Definition at line 37 of file PluginTest.php.
37 {
38
39 $propName = '{http://calendarserver.org/ns/}subscribed-strip-alarms';
40 $propFind = new PropFind('foo', [$propName]);
41 $propFind->set($propName, null, 200);
42
44 $plugin->propFind($propFind,
new \
Sabre\DAV\SimpleCollection(
'hi'));
45
46 $this->assertFalse(is_null($propFind->get($propName)));
47
48 }
References Sabre\CalDAV\PluginTest\$plugin.
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/dav/tests/Sabre/CalDAV/Subscriptions/PluginTest.php