ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ProxyWriteTest.php
Go to the documentation of this file.
1<?php
2
4
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
34
35 $i = $this->getInstance();
36 $this->assertEquals('principal/user/calendar-proxy-write', $i->getPrincipalUrl());
37
38 }
39
40}
An exception for terminatinating execution or to throw for unit testing.
$i
Definition: disco.tpl.php:19