aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CardDAV/IDirectoryTest.php
blob: 431cd2524ddd97a402a2ab70910496ff3a38745e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

namespace Sabre\CardDAV;

use Sabre\DAV;

class IDirectoryTest extends \PHPUnit_Framework_TestCase {

    function testResourceType() {

        $tree = array(
            new DirectoryMock('directory')
        );

        $server = new DAV\Server($tree);
        $plugin = new Plugin();
        $server->addPlugin($plugin);

        $props = $server->getProperties('directory', array('{DAV:}resourcetype'));
        $this->assertTrue($props['{DAV:}resourcetype']->is('{' . Plugin::NS_CARDDAV . '}directory'));

    }

}

class DirectoryMock extends DAV\SimpleCollection implements IDirectory {



}