mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 09:58:49 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
require_once 'Sabre/DAV/AbstractServer.php';
|
||||
|
||||
class Sabre_DAV_Browser_MapGetToPropFindTest extends Sabre_DAV_AbstractServer {
|
||||
|
||||
function setUp() {
|
||||
|
||||
parent::setUp();
|
||||
$this->server->addPlugin(new Sabre_DAV_Browser_MapGetToPropFind());
|
||||
|
||||
}
|
||||
|
||||
function testCollectionGet() {
|
||||
|
||||
$serverVars = array(
|
||||
'REQUEST_URI' => '/',
|
||||
'REQUEST_METHOD' => 'GET',
|
||||
);
|
||||
|
||||
$request = new Sabre_HTTP_Request($serverVars);
|
||||
$request->setBody('');
|
||||
$this->server->httpRequest = ($request);
|
||||
$this->server->exec();
|
||||
|
||||
$this->assertEquals(array(
|
||||
'Content-Type' => 'application/xml; charset=utf-8',
|
||||
'DAV' => '1, 3, extended-mkcol',
|
||||
),
|
||||
$this->response->headers
|
||||
);
|
||||
|
||||
$this->assertEquals('HTTP/1.1 207 Multi-Status',$this->response->status,'Incorrect status response received. Full response body: ' . $this->response->body);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue