Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1814647
ProxyWriteTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
834 B
Subscribers
None
ProxyWriteTest.php
View Options
<?php
namespace
Sabre\CalDAV\Principal
;
use
Sabre\DAVACL
;
class
ProxyWriteTest
extends
ProxyReadTest
{
function
getInstance
()
{
$backend
=
new
DAVACL\PrincipalBackend\Mock
();
$principal
=
new
ProxyWrite
(
$backend
,
array
(
'uri'
=>
'principal/user'
,
));
$this
->
backend
=
$backend
;
return
$principal
;
}
function
testGetName
()
{
$i
=
$this
->
getInstance
();
$this
->
assertEquals
(
'calendar-proxy-write'
,
$i
->
getName
());
}
function
testGetDisplayName
()
{
$i
=
$this
->
getInstance
();
$this
->
assertEquals
(
'calendar-proxy-write'
,
$i
->
getDisplayName
());
}
function
testGetPrincipalUri
()
{
$i
=
$this
->
getInstance
();
$this
->
assertEquals
(
'principal/user/calendar-proxy-write'
,
$i
->
getPrincipalUrl
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Dec 20, 11:42 AM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914094
Default Alt Text
ProxyWriteTest.php (834 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment