ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ProxyWriteTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\CalDAV\Principal
;
4
5
use
Sabre\DAVACL
;
6
7
class
ProxyWriteTest
extends
ProxyReadTest
{
8
9
function
getInstance
() {
10
11
$backend
=
new
DAVACL\PrincipalBackend\Mock
();
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
}
Sabre\CalDAV\Principal\ProxyWriteTest\testGetDisplayName
testGetDisplayName()
Definition:
ProxyWriteTest.php:26
Sabre\CalDAV\Principal
Definition:
Collection.php:3
Sabre\CalDAV\Principal\ProxyWriteTest\getInstance
getInstance()
Definition:
ProxyWriteTest.php:9
Sabre\CalDAV\Principal\ProxyWriteTest
Definition:
ProxyWriteTest.php:7
Sabre\DAVACL\PrincipalBackend\Mock
Definition:
Mock.php:5
Sabre\CalDAV\Principal\ProxyReadTest
Definition:
ProxyReadTest.php:7
Sabre\CalDAV\Principal\ProxyReadTest\$backend
$backend
Definition:
ProxyReadTest.php:9
Sabre\CalDAV\Principal\ProxyWriteTest\testGetPrincipalUri
testGetPrincipalUri()
Definition:
ProxyWriteTest.php:33
Sabre\DAVACL
Definition:
AbstractPrincipalCollection.php:3
Sabre\CalDAV\Principal\ProxyWrite
ProxyWrite principal.
Definition:
ProxyWrite.php:19
$i
$i
Definition:
disco.tpl.php:19
php
Sabre\CalDAV\Principal\ProxyWriteTest\testGetName
testGetName()
Definition:
ProxyWriteTest.php:20
libs
composer
vendor
sabre
dav
tests
Sabre
CalDAV
Principal
ProxyWriteTest.php
Generated on Thu Jan 30 2025 19:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)