ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
CalendarHomeNotificationsTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CalDAV
;
4
5
class
CalendarHomeNotificationsTest
extends
\PHPUnit_Framework_TestCase
{
6
7
function
testGetChildrenNoSupport
() {
8
9
$backend =
new
Backend\Mock
();
10
$calendarHome =
new
CalendarHome
($backend, [
'uri'
=>
'principals/user'
]);
11
12
$this->assertEquals(
13
[],
14
$calendarHome->getChildren()
15
);
16
17
}
18
22
function
testGetChildNoSupport
() {
23
24
$backend =
new
Backend\Mock
();
25
$calendarHome =
new
CalendarHome
($backend, [
'uri'
=>
'principals/user'
]);
26
$calendarHome->getChild(
'notifications'
);
27
28
}
29
30
function
testGetChildren
() {
31
32
$backend =
new
Backend\MockSharing
();
33
$calendarHome =
new
CalendarHome
($backend, [
'uri'
=>
'principals/user'
]);
34
35
$result
= $calendarHome->getChildren();
36
$this->assertEquals(
'notifications'
,
$result
[0]->getName());
37
38
}
39
40
function
testGetChild
() {
41
42
$backend =
new
Backend\MockSharing
();
43
$calendarHome =
new
CalendarHome
($backend, [
'uri'
=>
'principals/user'
]);
44
$result
= $calendarHome->getChild(
'notifications'
);
45
$this->assertEquals(
'notifications'
,
$result
->getName());
46
47
}
48
49
}
Sabre\CalDAV\CalendarHomeNotificationsTest\testGetChildren
testGetChildren()
Definition:
CalendarHomeNotificationsTest.php:30
$result
$result
Definition:
CleanUpTest.php:463
Sabre\CalDAV\CalendarHome
The CalendarHome represents a node that is usually in a users' calendar-homeset.
Definition:
CalendarHome.php:23
Sabre\CalDAV\CalendarHomeNotificationsTest\testGetChild
testGetChild()
Definition:
CalendarHomeNotificationsTest.php:40
PHPUnit_Framework_TestCase
Sabre\CalDAV\Backend\Mock
Definition:
Mock.php:8
Sabre\CalDAV\CalendarHomeNotificationsTest\testGetChildrenNoSupport
testGetChildrenNoSupport()
Definition:
CalendarHomeNotificationsTest.php:7
Sabre\CalDAV
Sabre\CalDAV\CalendarHomeNotificationsTest
Definition:
CalendarHomeNotificationsTest.php:5
Sabre\CalDAV\Backend\MockSharing
Definition:
MockSharing.php:8
Sabre\CalDAV\CalendarHomeNotificationsTest\testGetChildNoSupport
testGetChildNoSupport()
Definition:
CalendarHomeNotificationsTest.php:22
php
libs
composer
vendor
sabre
dav
tests
Sabre
CalDAV
CalendarHomeNotificationsTest.php
Generated on Thu Jan 16 2025 19:01:51 for ILIAS by
1.8.13 (using
Doxyfile
)