Definition at line 5 of file PropFindTest.php.
◆ testAllPropDefaults()
Sabre\DAV\PropFindTest::testAllPropDefaults |
( |
| ) |
|
◆ testHandle()
Sabre\DAV\PropFindTest::testHandle |
( |
| ) |
|
Definition at line 7 of file PropFindTest.php.
9 $propFind =
new PropFind(
'foo', [
'{DAV:}displayname']);
10 $propFind->handle(
'{DAV:}displayname',
'foobar');
13 200 => [
'{DAV:}displayname' =>
'foobar'],
15 ], $propFind->getResultForMultiStatus());
◆ testHandleCallBack()
Sabre\DAV\PropFindTest::testHandleCallBack |
( |
| ) |
|
Definition at line 19 of file PropFindTest.php.
21 $propFind =
new PropFind(
'foo', [
'{DAV:}displayname']);
22 $propFind->handle(
'{DAV:}displayname',
function() {
return 'foobar'; });
25 200 => [
'{DAV:}displayname' =>
'foobar'],
27 ], $propFind->getResultForMultiStatus());
◆ testSet()
Sabre\DAV\PropFindTest::testSet |
( |
| ) |
|
Definition at line 41 of file PropFindTest.php.
43 $propFind =
new PropFind(
'foo', [
'{DAV:}displayname']);
44 $propFind->set(
'{DAV:}displayname',
'bar');
47 200 => [
'{DAV:}displayname' =>
'bar'],
49 ], $propFind->getResultForMultiStatus());
◆ testSetAllpropCustom()
Sabre\DAV\PropFindTest::testSetAllpropCustom |
( |
| ) |
|
Definition at line 53 of file PropFindTest.php.
References Sabre\DAV\PropFind\ALLPROPS.
56 $propFind->set(
'{DAV:}customproperty',
'bar');
59 200 => [
'{DAV:}customproperty' =>
'bar'],
60 ], $propFind->getResultForMultiStatus());
const ALLPROPS
An allprops request.
◆ testSetUnset()
Sabre\DAV\PropFindTest::testSetUnset |
( |
| ) |
|
Definition at line 64 of file PropFindTest.php.
66 $propFind =
new PropFind(
'foo', [
'{DAV:}displayname']);
67 $propFind->set(
'{DAV:}displayname',
'bar');
68 $propFind->set(
'{DAV:}displayname', null);
72 404 => [
'{DAV:}displayname' => null],
73 ], $propFind->getResultForMultiStatus());
The documentation for this class was generated from the following file: