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
31
dav/SabreDAV/tests/Sabre/CalDAV/ServerTest.php
Normal file
31
dav/SabreDAV/tests/Sabre/CalDAV/ServerTest.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
require_once 'Sabre/CalDAV/TestUtil.php';
|
||||
|
||||
class Sabre_CalDAV_ServerTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
/**
|
||||
* The CalDAV server is a simple script that just composes a
|
||||
* Sabre_DAV_Server. All we really have to do is check if the setup
|
||||
* is done correctly.
|
||||
*/
|
||||
function testSetup() {
|
||||
|
||||
if (!SABRE_HASSQLITE) $this->markTestSkipped('SQLite driver is not available');
|
||||
$pdo = Sabre_CalDAV_TestUtil::getSQLiteDB();
|
||||
$server = new Sabre_CalDAV_Server($pdo);
|
||||
|
||||
$authPlugin = $server->getPlugin('auth');
|
||||
$this->assertTrue($authPlugin instanceof Sabre_DAV_Auth_Plugin);
|
||||
|
||||
$caldavPlugin = $server->getPlugin('caldav');
|
||||
$this->assertTrue($caldavPlugin instanceof Sabre_CalDAV_Plugin);
|
||||
|
||||
$node = $server->tree->getNodeForPath('');
|
||||
$this->assertTrue($node instanceof Sabre_DAV_SimpleCollection);
|
||||
|
||||
$this->assertEquals('root', $node->getName());
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue