ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
10 
14  protected $plugin;
18  protected $server;
22  protected $backend;
23 
24  function setUp() {
25 
26  $this->backend = new Backend\Mock();
28 
29  $tree = [
30  new AddressBookRoot($principalBackend, $this->backend),
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 }
CardDAV plugin.
Definition: Plugin.php:23
Main DAV server class.
Definition: Server.php:23
AddressBook rootnode.
$principalBackend