ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
IDirectoryTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CardDAV
;
4
5
use
Sabre\DAV
;
6
7
class
IDirectoryTest
extends
\PHPUnit_Framework_TestCase
{
8
9
function
testResourceType
() {
10
11
$tree
= [
12
new
DirectoryMock
(
'directory'
)
13
];
14
15
$server
=
new
DAV\Server
(
$tree
);
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
26
class
DirectoryMock
extends
DAV\SimpleCollection
implements
IDirectory
{
27
28
29
30
}
Sabre\CardDAV\IDirectory
IDirectory interface.
Definition:
IDirectory.php:18
Sabre\DAV
Sabre\CardDAV\IDirectoryTest\testResourceType
testResourceType()
Definition:
IDirectoryTest.php:9
Sabre\CardDAV\Plugin\NS_CARDDAV
const NS_CARDDAV
xml namespace for CardDAV elements
Definition:
Plugin.php:33
Sabre\CardDAV\IDirectoryTest
Definition:
IDirectoryTest.php:7
Sabre\CardDAV\Plugin
CardDAV plugin.
Definition:
Plugin.php:23
Sabre\DAV\SimpleCollection
SimpleCollection.
Definition:
SimpleCollection.php:15
PHPUnit_Framework_TestCase
$server
$server
Definition:
sabredav.php:48
is
$tree
$tree
Definition:
calendarserver.php:37
Sabre\CardDAV
Definition:
AddressBook.php:3
Sabre\DAV\Server
Main DAV server class.
Definition:
Server.php:23
Sabre\CardDAV\DirectoryMock
Definition:
IDirectoryTest.php:26
php
libs
composer
vendor
sabre
dav
tests
Sabre
CardDAV
IDirectoryTest.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)