aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php b/vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php
index 8552448f5..9ab16df74 100644
--- a/vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php
+++ b/vendor/sabre/dav/tests/Sabre/DAVACL/PluginAdminTest.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
namespace Sabre\DAVACL;
use Sabre\DAV;
@@ -8,12 +10,12 @@ use Sabre\HTTP;
require_once 'Sabre/DAVACL/MockACLNode.php';
require_once 'Sabre/HTTP/ResponseMock.php';
-class PluginAdminTest extends \PHPUnit_Framework_TestCase {
-
+class PluginAdminTest extends \PHPUnit\Framework\TestCase
+{
public $server;
- function setUp() {
-
+ public function setUp()
+ {
$principalBackend = new PrincipalBackend\Mock();
$tree = [
@@ -27,15 +29,15 @@ class PluginAdminTest extends \PHPUnit_Framework_TestCase {
$this->server->addPlugin($plugin);
}
- function testNoAdminAccess() {
-
+ public function testNoAdminAccess()
+ {
$plugin = new Plugin();
$this->server->addPlugin($plugin);
$request = HTTP\Sapi::createFromServerArray([
'REQUEST_METHOD' => 'OPTIONS',
- 'HTTP_DEPTH' => 1,
- 'REQUEST_URI' => '/adminonly',
+ 'HTTP_DEPTH' => 1,
+ 'REQUEST_URI' => '/adminonly',
]);
$response = new HTTP\ResponseMock();
@@ -46,14 +48,13 @@ class PluginAdminTest extends \PHPUnit_Framework_TestCase {
$this->server->exec();
$this->assertEquals(403, $response->status);
-
}
/**
* @depends testNoAdminAccess
*/
- function testAdminAccess() {
-
+ public function testAdminAccess()
+ {
$plugin = new Plugin();
$plugin->adminPrincipals = [
'principals/admin',
@@ -62,8 +63,8 @@ class PluginAdminTest extends \PHPUnit_Framework_TestCase {
$request = HTTP\Sapi::createFromServerArray([
'REQUEST_METHOD' => 'OPTIONS',
- 'HTTP_DEPTH' => 1,
- 'REQUEST_URI' => '/adminonly',
+ 'HTTP_DEPTH' => 1,
+ 'REQUEST_URI' => '/adminonly',
]);
$response = new HTTP\ResponseMock();
@@ -74,6 +75,5 @@ class PluginAdminTest extends \PHPUnit_Framework_TestCase {
$this->server->exec();
$this->assertEquals(200, $response->status);
-
}
}