/**
  * Sets up the fixture.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     parent::setUp();
     parent::setupCalendarContainer();
     $this->plugin = new Tinebase_WebDav_Plugin_Inverse();
     $this->server->addPlugin($this->plugin);
 }
 /**
  * Sets up the fixture.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     parent::setUp();
     $mockBackend = new Sabre\DAV\Auth\Backend\Mock();
     $mockBackend->defaultUser = Tinebase_Core::getUser()->contact_id;
     $plugin = new Sabre\DAV\Auth\Plugin($mockBackend, 'realm');
     $this->server->addPlugin($plugin);
     $aclPlugin = new \Sabre\DAVACL\Plugin();
     $aclPlugin->defaultUsernamePath = Tinebase_WebDav_PrincipalBackend::PREFIX_USERS;
     $aclPlugin->principalCollectionSet = array(Tinebase_WebDav_PrincipalBackend::PREFIX_USERS, Tinebase_WebDav_PrincipalBackend::PREFIX_GROUPS);
     $this->server->addPlugin($aclPlugin);
     $this->server->addPlugin(new \Sabre\CalDAV\Plugin());
     $this->server->addPlugin(new \Sabre\CalDAV\SharingPlugin());
     $this->plugin = new Tinebase_WebDav_Plugin_PrincipalSearch();
     $this->server->addPlugin($this->plugin);
 }
 /**
  * Sets up the fixture.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     if (Tinebase_User::getConfiguredBackend() === Tinebase_User::ACTIVEDIRECTORY) {
         $this->markTestSkipped('only working in non-AD setups');
     }
     parent::setUp();
     $mockBackend = new Sabre\DAV\Auth\Backend\Mock();
     $mockBackend->defaultUser = Tinebase_Core::getUser()->contact_id;
     $plugin = new Sabre\DAV\Auth\Plugin($mockBackend, 'realm');
     $this->server->addPlugin($plugin);
     $aclPlugin = new \Sabre\DAVACL\Plugin();
     $aclPlugin->defaultUsernamePath = Tinebase_WebDav_PrincipalBackend::PREFIX_USERS;
     $aclPlugin->principalCollectionSet = array(Tinebase_WebDav_PrincipalBackend::PREFIX_USERS, Tinebase_WebDav_PrincipalBackend::PREFIX_GROUPS);
     $this->server->addPlugin($aclPlugin);
     $this->server->addPlugin(new \Sabre\CalDAV\Plugin());
     $this->server->addPlugin(new \Sabre\CalDAV\SharingPlugin());
     $this->plugin = new Tinebase_WebDav_Plugin_PrincipalSearch();
     $this->server->addPlugin($this->plugin);
 }
 /**
  * Sets up the fixture.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     parent::setUp();
     $this->plugin = new Tinebase_WebDav_Plugin_OwnCloud();
     $this->server->addPlugin($this->plugin);
 }