Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1819844
SupportedCalendarDataTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
852 B
Subscribers
None
SupportedCalendarDataTest.php
View Options
<?php
namespace
Sabre\CalDAV\Xml\Property
;
use
Sabre\CalDAV
;
use
Sabre\DAV
;
class
SupportedCalendarDataTest
extends
DAV\Xml\XmlTest
{
function
testSimple
()
{
$sccs
=
new
SupportedCalendarData
();
$this
->
assertInstanceOf
(
'Sabre
\C
alDAV
\X
ml
\P
roperty
\S
upportedCalendarData'
,
$sccs
);
}
/**
* @depends testSimple
*/
function
testSerialize
()
{
$this
->
namespaceMap
[
CalDAV\Plugin
::
NS_CALDAV
]
=
'cal'
;
$property
=
new
SupportedCalendarData
();
$xml
=
$this
->
write
([
'{DAV:}root'
=>
$property
]);
$this
->
assertXmlStringEqualsXmlString
(
'<?xml version="1.0"?>
<d:root xmlns:d="DAV:" xmlns:cal="'
.
CalDAV\Plugin
::
NS_CALDAV
.
'">
<cal:calendar-data content-type="text/calendar" version="2.0"/>
<cal:calendar-data content-type="application/calendar+json"/>
</d:root>'
,
$xml
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 1:42 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914931
Default Alt Text
SupportedCalendarDataTest.php (852 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment