3 class Sabre_CalDAV_Principal_ProxyWriteTest extends Sabre_CalDAV_Principal_ProxyReadTest {
5 function getInstance() {
7 $backend = new Sabre_DAVACL_MockPrincipalBackend();
8 $principal = new Sabre_CalDAV_Principal_ProxyWrite($backend, array(
9 'uri' => 'principal/user',
11 $this->backend = $backend;
16 function testGetName() {
18 $i = $this->getInstance();
19 $this->assertEquals('calendar-proxy-write', $i->getName());
22 function testGetDisplayName() {
24 $i = $this->getInstance();
25 $this->assertEquals('calendar-proxy-write', $i->getDisplayName());
29 function testGetPrincipalUri() {
31 $i = $this->getInstance();
32 $this->assertEquals('principal/user/calendar-proxy-write', $i->getPrincipalUrl());