Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1842289
IDirectoryTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
607 B
Subscribers
None
IDirectoryTest.php
View Options
<?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
{
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jan 8, 5:09 AM (2 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914222
Default Alt Text
IDirectoryTest.php (607 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment