mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-17 13: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
25
dav/SabreDAV/tests/Sabre/CardDAV/IDirectoryTest.php
Normal file
25
dav/SabreDAV/tests/Sabre/CardDAV/IDirectoryTest.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
class Sabre_CardDAV_IDirectoryTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testResourceType() {
|
||||
|
||||
$tree = array(
|
||||
new Sabre_CardDAV_DirectoryMock('directory')
|
||||
);
|
||||
|
||||
$server = new Sabre_DAV_Server($tree);
|
||||
$plugin = new Sabre_CardDAV_Plugin();
|
||||
$server->addPlugin($plugin);
|
||||
|
||||
$props = $server->getProperties('directory', array('{DAV:}resourcetype'));
|
||||
$this->assertTrue($props['{DAV:}resourcetype']->is('{' . Sabre_CardDAV_Plugin::NS_CARDDAV . '}directory'));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Sabre_CardDAV_DirectoryMock extends Sabre_DAV_SimpleCollection implements Sabre_CardDAV_IDirectory {
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue