mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-27 12:13:15 +00:00
24 lines
591 B
PHP
24 lines
591 B
PHP
|
<?php
|
||
|
|
||
|
class Sabre_CalDAV_Notifications_NodeTest extends \PHPUnit_Framework_TestCase {
|
||
|
|
||
|
function testGetId() {
|
||
|
|
||
|
$principalUri = 'principals/user1';
|
||
|
|
||
|
$systemStatus = new Sabre_CalDAV_Notifications_Notification_SystemStatus(1);
|
||
|
|
||
|
$caldavBackend = new Sabre_CalDAV_Backend_Mock(array(),array(), array(
|
||
|
'principals/user1' => array(
|
||
|
$systemStatus
|
||
|
)
|
||
|
));
|
||
|
|
||
|
|
||
|
$node = new Sabre_CalDAV_Notifications_Node($caldavBackend, $systemStatus);
|
||
|
$this->assertEquals($systemStatus->getId(), $node->getName());
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|