Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820658
MapGetToPropFindTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Subscribers
None
MapGetToPropFindTest.php
View Options
<?php
namespace
Sabre\DAV\Browser
;
use
Sabre\DAV
;
use
Sabre\HTTP
;
require_once
'Sabre/DAV/AbstractServer.php'
;
class
MapGetToPropFindTest
extends
DAV\AbstractServer
{
function
setUp
()
{
parent
::
setUp
();
$this
->
server
->
addPlugin
(
new
MapGetToPropFind
());
}
function
testCollectionGet
()
{
$serverVars
=
array
(
'REQUEST_URI'
=>
'/'
,
'REQUEST_METHOD'
=>
'GET'
,
);
$request
=
HTTP\Sapi
::
createFromServerArray
(
$serverVars
);
$request
->
setBody
(
''
);
$this
->
server
->
httpRequest
=
(
$request
);
$this
->
server
->
exec
();
$this
->
assertEquals
(
207
,
$this
->
response
->
status
,
'Incorrect status response received. Full response body: '
.
$this
->
response
->
body
);
$this
->
assertEquals
(
array
(
'X-Sabre-Version'
=>
[
DAV\Version
::
VERSION
],
'Content-Type'
=>
[
'application/xml; charset=utf-8'
],
'DAV'
=>
[
'1, 3, extended-mkcol'
],
'Vary'
=>
[
'Brief,Prefer'
],
),
$this
->
response
->
getHeaders
()
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Dec 22, 8:09 AM (3 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914409
Default Alt Text
MapGetToPropFindTest.php (1 KB)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment