ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
$
c
d
e
f
g
h
i
j
l
m
n
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
§
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
§
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Modules
Pages
AddressBookRootTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CardDAV
;
4
5
use
Sabre\DAVACL
;
6
7
class
AddressBookRootTest
extends
\PHPUnit_Framework_TestCase
{
8
9
function
testGetName
() {
10
11
$pBackend =
new
DAVACL\PrincipalBackend\Mock
();
12
$cBackend =
new
Backend\Mock
();
13
$root
=
new
AddressBookRoot
($pBackend, $cBackend);
14
$this->assertEquals(
'addressbooks'
,
$root
->getName());
15
16
}
17
18
function
testGetChildForPrincipal
() {
19
20
$pBackend =
new
DAVACL\PrincipalBackend\Mock
();
21
$cBackend =
new
Backend\Mock
();
22
$root
=
new
AddressBookRoot
($pBackend, $cBackend);
23
24
$children =
$root
->getChildren();
25
$this->assertEquals(3, count($children));
26
27
$this->assertInstanceOf(
'Sabre\\CardDAV\\AddressBookHome'
, $children[0]);
28
$this->assertEquals(
'user1'
, $children[0]->getName());
29
30
}
31
}
Sabre\CardDAV\AddressBookRootTest
Definition:
AddressBookRootTest.php:7
Sabre\CardDAV\AddressBookRootTest\testGetChildForPrincipal
testGetChildForPrincipal()
Definition:
AddressBookRootTest.php:18
PHPUnit_Framework_TestCase
Sabre\DAVACL\PrincipalBackend\Mock
Definition:
Mock.php:5
Sabre\CardDAV
Definition:
AddressBook.php:3
Sabre\CardDAV\Backend\Mock
Definition:
Mock.php:5
$root
$root
Definition:
sabredav.php:45
Sabre\DAVACL
Definition:
AbstractPrincipalCollection.php:3
Sabre\CardDAV\AddressBookRootTest\testGetName
testGetName()
Definition:
AddressBookRootTest.php:9
php
Sabre\CardDAV\AddressBookRoot
AddressBook rootnode.
Definition:
AddressBookRoot.php:16
libs
composer
vendor
sabre
dav
tests
Sabre
CardDAV
AddressBookRootTest.php
Generated on Thu Mar 13 2025 19:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)