ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\CardDAV\AbstractPluginTest Class Reference
+ Inheritance diagram for Sabre\CardDAV\AbstractPluginTest:
+ Collaboration diagram for Sabre\CardDAV\AbstractPluginTest:

Public Member Functions

 setUp ()
 

Protected Attributes

 $plugin
 
 $server
 
 $backend
 

Detailed Description

Definition at line 9 of file AbstractPluginTest.php.

Member Function Documentation

◆ setUp()

Sabre\CardDAV\AbstractPluginTest::setUp ( )

Definition at line 24 of file AbstractPluginTest.php.

References $principalBackend, and $tree.

24  {
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  }
$principalBackend

Field Documentation

◆ $backend

Sabre\CardDAV\AbstractPluginTest::$backend
protected

Definition at line 22 of file AbstractPluginTest.php.

◆ $plugin

Sabre\CardDAV\AbstractPluginTest::$plugin
protected

Definition at line 14 of file AbstractPluginTest.php.

◆ $server

Sabre\CardDAV\AbstractPluginTest::$server
protected

Definition at line 18 of file AbstractPluginTest.php.


The documentation for this class was generated from the following file: