ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CalDAV\CalendarHomeNotificationsTest Class Reference
+ Inheritance diagram for Sabre\CalDAV\CalendarHomeNotificationsTest:
+ Collaboration diagram for Sabre\CalDAV\CalendarHomeNotificationsTest:

Public Member Functions

 testGetChildrenNoSupport ()
 
 testGetChildNoSupport ()
 
 testGetChildren ()
 
 testGetChild ()
 

Detailed Description

Definition at line 5 of file CalendarHomeNotificationsTest.php.

Member Function Documentation

◆ testGetChild()

Sabre\CalDAV\CalendarHomeNotificationsTest::testGetChild ( )

Definition at line 40 of file CalendarHomeNotificationsTest.php.

References $result.

40  {
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  }
$result

◆ testGetChildNoSupport()

Sabre\CalDAV\CalendarHomeNotificationsTest::testGetChildNoSupport ( )

Definition at line 22 of file CalendarHomeNotificationsTest.php.

22  {
23 
24  $backend = new Backend\Mock();
25  $calendarHome = new CalendarHome($backend, ['uri' => 'principals/user']);
26  $calendarHome->getChild('notifications');
27 
28  }

◆ testGetChildren()

Sabre\CalDAV\CalendarHomeNotificationsTest::testGetChildren ( )

Definition at line 30 of file CalendarHomeNotificationsTest.php.

References $result.

30  {
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  }
$result

◆ testGetChildrenNoSupport()

Sabre\CalDAV\CalendarHomeNotificationsTest::testGetChildrenNoSupport ( )

Definition at line 7 of file CalendarHomeNotificationsTest.php.

7  {
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  }

The documentation for this class was generated from the following file: