Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820897
CalendarHomeNotificationsTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Subscribers
None
CalendarHomeNotificationsTest.php
View Options
<?php
namespace
Sabre\CalDAV
;
use
Sabre\DAVACL
;
class
CalendarHomeNotificationsTest
extends
\PHPUnit_Framework_TestCase
{
protected
$backend
;
function
testGetChildrenNoSupport
()
{
$backend
=
new
Backend\Mock
();
$calendarHome
=
new
CalendarHome
(
$backend
,[
'uri'
=>
'principals/user'
]);
$this
->
assertEquals
(
[],
$calendarHome
->
getChildren
()
);
}
/**
* @expectedException \Sabre\DAV\Exception\NotFound
*/
function
testGetChildNoSupport
()
{
$backend
=
new
Backend\Mock
();
$calendarHome
=
new
CalendarHome
(
$backend
,[
'uri'
=>
'principals/user'
]);
$calendarHome
->
getChild
(
'notifications'
);
}
function
testGetChildren
()
{
$backend
=
new
Backend\MockSharing
();
$calendarHome
=
new
CalendarHome
(
$backend
,[
'uri'
=>
'principals/user'
]);
$result
=
$calendarHome
->
getChildren
();
$this
->
assertEquals
(
'notifications'
,
$result
[
0
]->
getName
());
}
function
testGetChild
()
{
$backend
=
new
Backend\MockSharing
();
$calendarHome
=
new
CalendarHome
(
$backend
,[
'uri'
=>
'principals/user'
]);
$result
=
$calendarHome
->
getChild
(
'notifications'
);
$this
->
assertEquals
(
'notifications'
,
$result
->
getName
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Dec 22, 9:15 PM (2 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914329
Default Alt Text
CalendarHomeNotificationsTest.php (1 KB)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment