ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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 Jan 30 2025 19:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)