ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ProxyWriteTest.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\CalDAV\Principal;
4 
5 use Sabre\DAVACL;
6 
8 
9  function getInstance() {
10 
12  $principal = new ProxyWrite($backend, [
13  'uri' => 'principal/user',
14  ]);
15  $this->backend = $backend;
16  return $principal;
17 
18  }
19 
20  function testGetName() {
21 
22  $i = $this->getInstance();
23  $this->assertEquals('calendar-proxy-write', $i->getName());
24 
25  }
26  function testGetDisplayName() {
27 
28  $i = $this->getInstance();
29  $this->assertEquals('calendar-proxy-write', $i->getDisplayName());
30 
31  }
32 
33  function testGetPrincipalUri() {
34 
35  $i = $this->getInstance();
36  $this->assertEquals('principal/user/calendar-proxy-write', $i->getPrincipalUrl());
37 
38  }
39 
40 }
ProxyWrite principal.
Definition: ProxyWrite.php:19
$i
Definition: disco.tpl.php:19