ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
IDirectoryTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\CardDAV;
4
5use Sabre\DAV;
6
8
9 function testResourceType() {
10
11 $tree = [
12 new DirectoryMock('directory')
13 ];
14
16 $plugin = new Plugin();
17 $server->addPlugin($plugin);
18
19 $props = $server->getProperties('directory', ['{DAV:}resourcetype']);
20 $this->assertTrue($props['{DAV:}resourcetype']->is('{' . Plugin::NS_CARDDAV . '}directory'));
21
22 }
23
24}
25
27
28
29
30}
An exception for terminatinating execution or to throw for unit testing.
CardDAV plugin.
Definition: Plugin.php:23
const NS_CARDDAV
xml namespace for CardDAV elements
Definition: Plugin.php:33
Main DAV server class.
Definition: Server.php:23
IDirectory interface.
Definition: IDirectory.php:18
$server
Definition: sabredav.php:48