ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AbstractPluginTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CardDAV
;
4
5
use
Sabre\DAV
;
6
use
Sabre\DAVACL
;
7
use
Sabre\HTTP
;
8
9
abstract
class
AbstractPluginTest
extends
\PHPUnit_Framework_TestCase
{
10
14
protected
$plugin
;
18
protected
$server
;
22
protected
$backend
;
23
24
function
setUp
() {
25
26
$this->backend =
new
Backend\Mock
();
27
$principalBackend
=
new
DAVACL\PrincipalBackend\Mock
();
28
29
$tree
= [
30
new
AddressBookRoot
(
$principalBackend
, $this->backend),
31
new
DAVACL\PrincipalCollection
(
$principalBackend
)
32
];
33
34
$this->plugin =
new
Plugin
();
35
$this->plugin->directories = [
'directory'
];
36
$this->server =
new
DAV\Server
(
$tree
);
37
$this->server->sapi =
new
HTTP\SapiMock();
38
$this->server->addPlugin($this->plugin);
39
$this->server->debugExceptions =
true
;
40
41
}
42
43
}
Sabre\DAV
Sabre\CardDAV\AbstractPluginTest\$plugin
$plugin
Definition:
AbstractPluginTest.php:14
Sabre\CardDAV\Plugin
CardDAV plugin.
Definition:
Plugin.php:23
Sabre\HTTP
Definition:
ResponseMock.php:3
PHPUnit_Framework_TestCase
Sabre\DAVACL\PrincipalBackend\Mock
Definition:
Mock.php:5
Sabre\CardDAV\AbstractPluginTest\$backend
$backend
Definition:
AbstractPluginTest.php:22
Sabre\CardDAV\AbstractPluginTest\$server
$server
Definition:
AbstractPluginTest.php:18
$tree
$tree
Definition:
calendarserver.php:37
Sabre\CardDAV
Definition:
AddressBook.php:3
Sabre\CardDAV\Backend\Mock
Definition:
Mock.php:5
Sabre\CardDAV\AbstractPluginTest
Definition:
AbstractPluginTest.php:9
Sabre\DAV\Server
Main DAV server class.
Definition:
Server.php:23
Sabre\DAVACL
Definition:
AbstractPrincipalCollection.php:3
php
Sabre\CardDAV\AddressBookRoot
AddressBook rootnode.
Definition:
AddressBookRoot.php:16
Sabre\CardDAV\AbstractPluginTest\setUp
setUp()
Definition:
AbstractPluginTest.php:24
$principalBackend
$principalBackend
Definition:
addressbookserver.php:33
Sabre\DAVACL\PrincipalCollection
Principals Collection.
Definition:
PrincipalCollection.php:19
libs
composer
vendor
sabre
dav
tests
Sabre
CardDAV
AbstractPluginTest.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)