Definition at line 7 of file BlockAccessTest.php.
◆ setUp()
Sabre\DAVACL\BlockAccessTest::setUp |
( |
| ) |
|
Definition at line 15 of file BlockAccessTest.php.
References $nodes.
18 new DAV\SimpleCollection(
'testdir'),
21 $this->server =
new DAV\Server(
$nodes);
22 $this->plugin =
new Plugin();
23 $this->plugin->setDefaultAcl([]);
24 $this->server->addPlugin(
26 new DAV\Auth\Backend\Mock()
30 $this->server->getPlugin(
'auth')->beforeMethod(
34 $this->server->addPlugin($this->plugin);
◆ testACL()
Sabre\DAVACL\BlockAccessTest::testACL |
( |
| ) |
|
Sabre
Definition at line 135 of file BlockAccessTest.php.
137 $this->server->httpRequest->setMethod(
'ACL');
138 $this->server->httpRequest->setUrl(
'/testdir');
140 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testBeforeBind()
Sabre\DAVACL\BlockAccessTest::testBeforeBind |
( |
| ) |
|
◆ testBeforeGetPropertiesNoListing()
Sabre\DAVACL\BlockAccessTest::testBeforeGetPropertiesNoListing |
( |
| ) |
|
Definition at line 201 of file BlockAccessTest.php.
References $r.
203 $this->plugin->hideNodesFromListings =
true;
204 $propFind =
new DAV\PropFind(
'testdir', [
206 '{DAV:}getcontentlength',
211 $r = $this->server->emit(
'propFind', [$propFind,
new DAV\SimpleCollection(
'testdir')]);
212 $this->assertFalse(
$r);
◆ testBeforeUnbind()
Sabre\DAVACL\BlockAccessTest::testBeforeUnbind |
( |
| ) |
|
◆ testCOPY()
Sabre\DAVACL\BlockAccessTest::testCOPY |
( |
| ) |
|
Sabre
Definition at line 111 of file BlockAccessTest.php.
113 $this->server->httpRequest->setMethod(
'COPY');
114 $this->server->httpRequest->setUrl(
'/testdir');
116 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testGet()
Sabre\DAVACL\BlockAccessTest::testGet |
( |
| ) |
|
Sabre
Definition at line 41 of file BlockAccessTest.php.
43 $this->server->httpRequest->setMethod(
'GET');
44 $this->server->httpRequest->setUrl(
'/testdir');
46 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testGetDoesntExist()
Sabre\DAVACL\BlockAccessTest::testGetDoesntExist |
( |
| ) |
|
Definition at line 50 of file BlockAccessTest.php.
References $r.
52 $this->server->httpRequest->setMethod(
'GET');
53 $this->server->httpRequest->setUrl(
'/foo');
55 $r = $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
56 $this->assertTrue(
$r);
◆ testHEAD()
Sabre\DAVACL\BlockAccessTest::testHEAD |
( |
| ) |
|
Sabre
Definition at line 63 of file BlockAccessTest.php.
65 $this->server->httpRequest->setMethod(
'HEAD');
66 $this->server->httpRequest->setUrl(
'/testdir');
68 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testLOCK()
Sabre\DAVACL\BlockAccessTest::testLOCK |
( |
| ) |
|
Sabre
Definition at line 147 of file BlockAccessTest.php.
149 $this->server->httpRequest->setMethod(
'LOCK');
150 $this->server->httpRequest->setUrl(
'/testdir');
152 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testMOVE()
Sabre\DAVACL\BlockAccessTest::testMOVE |
( |
| ) |
|
Sabre
Definition at line 123 of file BlockAccessTest.php.
125 $this->server->httpRequest->setMethod(
'MOVE');
126 $this->server->httpRequest->setUrl(
'/testdir');
128 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testOPTIONS()
Sabre\DAVACL\BlockAccessTest::testOPTIONS |
( |
| ) |
|
Sabre
Definition at line 75 of file BlockAccessTest.php.
77 $this->server->httpRequest->setMethod(
'OPTIONS');
78 $this->server->httpRequest->setUrl(
'/testdir');
80 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testPropFind()
Sabre\DAVACL\BlockAccessTest::testPropFind |
( |
| ) |
|
Definition at line 174 of file BlockAccessTest.php.
References $r.
176 $propFind =
new DAV\PropFind(
'testdir', [
178 '{DAV:}getcontentlength',
183 $r = $this->server->emit(
'propFind', [$propFind,
new DAV\SimpleCollection(
'testdir')]);
184 $this->assertTrue(
$r);
190 '{DAV:}displayname' => null,
191 '{DAV:}getcontentlength' => null,
193 '{DAV:}owner' => null,
197 $this->assertEquals($expected, $propFind->getResultForMultiStatus());
◆ testPROPPATCH()
Sabre\DAVACL\BlockAccessTest::testPROPPATCH |
( |
| ) |
|
Sabre
Definition at line 99 of file BlockAccessTest.php.
101 $this->server->httpRequest->setMethod(
'PROPPATCH');
102 $this->server->httpRequest->setUrl(
'/testdir');
104 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ testPUT()
Sabre\DAVACL\BlockAccessTest::testPUT |
( |
| ) |
|
Sabre
Definition at line 87 of file BlockAccessTest.php.
89 $this->server->httpRequest->setMethod(
'PUT');
90 $this->server->httpRequest->setUrl(
'/testdir');
92 $this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]);
◆ $plugin
Sabre\DAVACL\BlockAccessTest::$plugin |
|
protected |
◆ $server
Sabre\DAVACL\BlockAccessTest::$server |
|
protected |
The documentation for this class was generated from the following file: