Definition at line 7 of file AllowAccessTest.php.
◆ setUp()
Sabre\DAVACL\AllowAccessTest::setUp |
( |
| ) |
|
Definition at line 14 of file AllowAccessTest.php.
References $aclPlugin, and $nodes.
17 new DAV\Mock\Collection(
'testdir', [
18 'file1.txt' =>
'contents',
22 $this->server =
new DAV\Server(
$nodes);
23 $this->server->addPlugin(
25 new DAV\Auth\Backend\Mock()
29 $this->server->getPlugin(
'auth')->beforeMethod(
◆ testBeforeBind()
Sabre\DAVACL\AllowAccessTest::testBeforeBind |
( |
| ) |
|
Definition at line 119 of file AllowAccessTest.php.
121 $this->assertTrue($this->server->emit(
'beforeBind', [
'testdir/file']));
◆ testBeforeUnbind()
Sabre\DAVACL\AllowAccessTest::testBeforeUnbind |
( |
| ) |
|
Definition at line 126 of file AllowAccessTest.php.
128 $this->assertTrue($this->server->emit(
'beforeUnbind', [
'testdir']));
◆ testCOPY()
Sabre\DAVACL\AllowAccessTest::testCOPY |
( |
| ) |
|
Definition at line 92 of file AllowAccessTest.php.
94 $this->server->httpRequest->setMethod(
'COPY');
95 $this->server->httpRequest->setUrl(
'/testdir');
97 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testGet()
Sabre\DAVACL\AllowAccessTest::testGet |
( |
| ) |
|
Definition at line 38 of file AllowAccessTest.php.
40 $this->server->httpRequest->setMethod(
'GET');
41 $this->server->httpRequest->setUrl(
'/testdir');
43 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testGetDoesntExist()
Sabre\DAVACL\AllowAccessTest::testGetDoesntExist |
( |
| ) |
|
Definition at line 47 of file AllowAccessTest.php.
49 $this->server->httpRequest->setMethod(
'GET');
50 $this->server->httpRequest->setUrl(
'/foo');
52 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testHEAD()
Sabre\DAVACL\AllowAccessTest::testHEAD |
( |
| ) |
|
Definition at line 56 of file AllowAccessTest.php.
58 $this->server->httpRequest->setMethod(
'HEAD');
59 $this->server->httpRequest->setUrl(
'/testdir');
61 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testLOCK()
Sabre\DAVACL\AllowAccessTest::testLOCK |
( |
| ) |
|
Definition at line 110 of file AllowAccessTest.php.
112 $this->server->httpRequest->setMethod(
'LOCK');
113 $this->server->httpRequest->setUrl(
'/testdir');
115 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testMOVE()
Sabre\DAVACL\AllowAccessTest::testMOVE |
( |
| ) |
|
Definition at line 101 of file AllowAccessTest.php.
103 $this->server->httpRequest->setMethod(
'MOVE');
104 $this->server->httpRequest->setUrl(
'/testdir');
106 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testOPTIONS()
Sabre\DAVACL\AllowAccessTest::testOPTIONS |
( |
| ) |
|
Definition at line 65 of file AllowAccessTest.php.
67 $this->server->httpRequest->setMethod(
'OPTIONS');
68 $this->server->httpRequest->setUrl(
'/testdir');
70 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testPROPPATCH()
Sabre\DAVACL\AllowAccessTest::testPROPPATCH |
( |
| ) |
|
Definition at line 83 of file AllowAccessTest.php.
85 $this->server->httpRequest->setMethod(
'PROPPATCH');
86 $this->server->httpRequest->setUrl(
'/testdir');
88 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ testPUT()
Sabre\DAVACL\AllowAccessTest::testPUT |
( |
| ) |
|
Definition at line 74 of file AllowAccessTest.php.
76 $this->server->httpRequest->setMethod(
'PUT');
77 $this->server->httpRequest->setUrl(
'/testdir/file1.txt');
79 $this->assertTrue($this->server->emit(
'beforeMethod', [$this->server->httpRequest, $this->server->httpResponse]));
◆ $server
Sabre\DAVACL\AllowAccessTest::$server |
|
protected |
The documentation for this class was generated from the following file: