ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CalendarHomeNotificationsTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\CalDAV;
4 
6 
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 }
$result
The CalendarHome represents a node that is usually in a users&#39; calendar-homeset.