Definition at line 7 of file PrincipalMatchTest.php.
◆ testPrincipalMatch()
Sabre\DAVACL\PrincipalMatchTest::testPrincipalMatch |
( |
| ) |
|
Definition at line 12 of file PrincipalMatchTest.php.
References $request, $response, $xml, and Sabre\DAVServerTest\request().
16 <principal-match xmlns=
"DAV:">
21 $request =
new Request(
'REPORT',
'/principals', [
'Content-Type' =>
'application/xml']);
28 <d:multistatus xmlns:d=
"DAV:" xmlns:
s=
"http://sabredav.org/ns">
29 <d:status>
HTTP/1.1 200 OK</d:status>
30 <d:href>/principals/user1</d:href>
33 <d:status>
HTTP/1.1 418
I'm a teapot</d:status> 38 $this->assertXmlStringEqualsXmlString( 40 $response->getBodyAsString() foreach($paths as $path) $request
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
◆ testPrincipalMatchPrincipalProperty()
Sabre\DAVACL\PrincipalMatchTest::testPrincipalMatchPrincipalProperty |
( |
| ) |
|
Definition at line 83 of file PrincipalMatchTest.php.
87 <principal-match xmlns=
"DAV:">
97 $request =
new Request(
'REPORT',
'/principals', [
'Content-Type' =>
'application/xml']);
103 <?xml version=
"1.0"?>
104 <d:multistatus xmlns:d=
"DAV:" xmlns:
s=
"http://sabredav.org/ns">
105 <d:status>
HTTP/1.1 200 OK</d:status>
106 <d:href>/principals/user1/</d:href>
109 <d:resourcetype><d:principal/></d:resourcetype>
111 <d:status>
HTTP/1.1 200 OK</d:status>
116 $this->assertXmlStringEqualsXmlString(
foreach($paths as $path) $request
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
◆ testPrincipalMatchProp()
Sabre\DAVACL\PrincipalMatchTest::testPrincipalMatchProp |
( |
| ) |
|
Definition at line 45 of file PrincipalMatchTest.php.
49 <principal-match xmlns=
"DAV:">
57 $request =
new Request(
'REPORT',
'/principals', [
'Content-Type' =>
'application/xml']);
64 <d:multistatus xmlns:d=
"DAV:" xmlns:
s=
"http://sabredav.org/ns">
65 <d:status>
HTTP/1.1 200 OK</d:status>
66 <d:href>/principals/user1/</d:href>
69 <d:resourcetype><d:principal/></d:resourcetype>
71 <d:status>
HTTP/1.1 200 OK</d:status>
76 $this->assertXmlStringEqualsXmlString(
foreach($paths as $path) $request
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
◆ $autoLogin
Sabre\DAVACL\PrincipalMatchTest::$autoLogin = 'user1' |
◆ $setupACL
Sabre\DAVACL\PrincipalMatchTest::$setupACL = true |
The documentation for this class was generated from the following file: