예제 #1
0
 public function setUp()
 {
     parent::setUp();
     if (!setUpStorageBackend()) {
         $this->markTestSkipped('No storage backend specified; all tests depending on the storage backend are skipped');
         return;
     }
     $this->obj = new \BeeHub_MongoResource('/foo/file.txt');
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
     if (!setUpStorageBackend()) {
         $this->markTestSkipped('No storage backend specified; all tests depending on the storage backend are skipped');
         return;
     }
     $this->setCurrentUser('/system/users/john');
 }
예제 #3
0
 public function setUp()
 {
     // We need to prevent that we continue with tests in a different proces
     if ($this->alternate_pid) {
         exit;
     }
     parent::setUp();
     setUp();
 }
예제 #4
0
 public function setUp()
 {
     parent::setUp();
     if (!setUpStorageBackend()) {
         $this->markTestSkipped('No storage backend specified; all tests depending on the storage backend are skipped');
         return;
     }
     $sponsorA = new \BeeHub_Sponsor('/system/sponsors/sponsor_a');
     $sponsorA->change_memberships(array('jane'), \BeeHub_Sponsor::ADMIN_ACCEPT);
     $sponsorA->change_memberships(array('jane'), \BeeHub_Sponsor::SET_ADMIN);
     $jane = new \BeeHub_User('/system/users/jane');
     $jane->user_set_sponsor('/system/sponsors/sponsor_a');
     $jane->storeProperties();
     $directory = new \BeeHub_Directory('/foo/directory/');
     $this->setCurrentUser('/system/users/john');
     $directory->user_set_acl(array(new \DAVACL_Element_ace('/system/users/jane', false, array(\DAVACL::PRIV_READ, \DAVACL::PRIV_WRITE), false)));
     // I need to reload the directory to avoid cache polution
     $this->obj = new \BeeHub_Directory('/foo/directory/');
 }
예제 #5
0
 public function setUp()
 {
     parent::setUp();
     if (!setUpStorageBackend()) {
         $this->markTestSkipped('No storage backend specified; all tests depending on the storage backend are skipped');
         return;
     }
     $sponsorA = new \BeeHub_Sponsor('/system/sponsors/sponsor_a');
     $sponsorA->change_memberships(array('jane'), \BeeHub_Sponsor::ADMIN_ACCEPT);
     $sponsorA->change_memberships(array('jane'), \BeeHub_Sponsor::SET_ADMIN);
     $jane = new \BeeHub_User('/system/users/jane');
     $jane->user_set_sponsor('/system/sponsors/sponsor_a');
     $jane->storeProperties();
     $foo = new \BeeHub_Group('/system/groups/foo');
     $foo->change_memberships(array('jane'), \BeeHub_Group::USER_ACCEPT);
     $foo->change_memberships(array('jane'), \BeeHub_Group::ADMIN_ACCEPT);
     $foo->change_memberships(array('jane'), \BeeHub_Group::SET_ADMIN);
     $this->obj = new \BeeHub_File('/foo/file.txt');
     $_SERVER['REQUEST_URI'] = '/foo/file.txt';
 }
예제 #6
0
 public function setUp()
 {
     parent::setUp();
     $this->obj = new \BeeHub_Users('/system/users/');
 }
예제 #7
0
 public function setUp()
 {
     parent::setUp();
     setUp();
     $this->obj = new \BeeHub_Sponsors('/system/sponsors/');
 }
예제 #8
0
 public function setUp()
 {
     parent::setUp();
     $this->obj = new \BeeHub_Groups('/system/groups/');
 }