blob: 4796a131f879b9c6ada40d6b7b618685c3eed65f (
plain) (
tree)
|
|
<?php
namespace Sabre\CardDAV;
use Sabre\DAV;
class IDirectoryTest extends \PHPUnit_Framework_TestCase {
function testResourceType() {
$tree = [
new DirectoryMock('directory')
];
$server = new DAV\Server($tree);
$plugin = new Plugin();
$server->addPlugin($plugin);
$props = $server->getProperties('directory', ['{DAV:}resourcetype']);
$this->assertTrue($props['{DAV:}resourcetype']->is('{' . Plugin::NS_CARDDAV . '}directory'));
}
}
class DirectoryMock extends DAV\SimpleCollection implements IDirectory {
}
|