mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-05 14:42:55 +00:00
23 lines
591 B
PHP
23 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());
|
|
|
|
}
|
|
|
|
}
|