1<?php 2 3namespace Sabre\CalDAV\Principal; 4 5use Sabre\DAVACL; 6 7class 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} 41