aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php b/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php
new file mode 100644
index 000000000..c0186ff0d
--- /dev/null
+++ b/vendor/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php
@@ -0,0 +1,39 @@
+<?php
+
+namespace Sabre\CalDAV\Principal;
+use Sabre\DAVACL;
+
+class ProxyWriteTest extends ProxyReadTest {
+
+ function getInstance() {
+
+ $backend = new DAVACL\PrincipalBackend\Mock();
+ $principal = new ProxyWrite($backend, array(
+ 'uri' => 'principal/user',
+ ));
+ $this->backend = $backend;
+ return $principal;
+
+ }
+
+ function testGetName() {
+
+ $i = $this->getInstance();
+ $this->assertEquals('calendar-proxy-write', $i->getName());
+
+ }
+ function testGetDisplayName() {
+
+ $i = $this->getInstance();
+ $this->assertEquals('calendar-proxy-write', $i->getDisplayName());
+
+ }
+
+ function testGetPrincipalUri() {
+
+ $i = $this->getInstance();
+ $this->assertEquals('principal/user/calendar-proxy-write', $i->getPrincipalUrl());
+
+ }
+
+}