3 class Sabre_CalDAV_Notifications_CollectionTest extends \PHPUnit_Framework_TestCase {
5 function testGetChildren() {
7 $principalUri = 'principals/user1';
9 $systemStatus = new Sabre_CalDAV_Notifications_Notification_SystemStatus(1);
11 $caldavBackend = new Sabre_CalDAV_Backend_Mock(array(),array(), array(
12 'principals/user1' => array(
18 $col = new Sabre_CalDAV_Notifications_Collection($caldavBackend, $principalUri);
19 $this->assertEquals('notifications', $col->getName());
21 $this->assertEquals(array(
22 new Sabre_CalDAV_Notifications_Node($caldavBackend, $systemStatus)
23 ), $col->getChildren());