Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820265
AllowedSharingModesTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
912 B
Subscribers
None
AllowedSharingModesTest.php
View Options
<?php
namespace
Sabre\CalDAV\Xml\Property
;
use
Sabre\CalDAV
;
use
Sabre\DAV
;
class
AllowedSharingModesTest
extends
DAV\Xml\XmlTest
{
function
testSimple
()
{
$sccs
=
new
AllowedSharingModes
(
true
,
true
);
$this
->
assertInstanceOf
(
'Sabre
\C
alDAV
\X
ml
\P
roperty
\A
llowedSharingModes'
,
$sccs
);
}
/**
* @depends testSimple
*/
function
testSerialize
()
{
$property
=
new
AllowedSharingModes
(
true
,
true
);
$this
->
namespaceMap
[
CalDAV\Plugin
::
NS_CALDAV
]
=
'cal'
;
$this
->
namespaceMap
[
CalDAV\Plugin
::
NS_CALENDARSERVER
]
=
'cs'
;
$xml
=
$this
->
write
([
'{DAV:}root'
=>
$property
]);
$this
->
assertXmlStringEqualsXmlString
(
'<?xml version="1.0"?>
<d:root xmlns:d="DAV:" xmlns:cal="'
.
CalDAV\Plugin
::
NS_CALDAV
.
'" xmlns:cs="'
.
CalDAV\Plugin
::
NS_CALENDARSERVER
.
'">
<cs:can-be-shared/>
<cs:can-be-published/>
</d:root>
'
,
$xml
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 11:54 PM (1 w, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914797
Default Alt Text
AllowedSharingModesTest.php (912 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment