Blame view

sources/3rdparty/sabre/dav/tests/Sabre/CalDAV/Principal/ProxyWriteTest.php 834 Bytes
6d9380f96   Cédric Dupont   Update sources OC...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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());
  
      }
  
  }