Ejemplo n.º 1
0
 /**
  * local setup - outline the test functions in the framework
  *
  * @see TestBase::setUp()
  */
 public function setUp()
 {
     // default current user to admin
     parent::setUp();
     //protocols to test
     $this->testrest = true;
     $this->testxmlrpc = true;
     $this->testsoap = true;
     ////// READ-ONLY DB tests ////
     $this->readonlytests = array('mahara_user_get_users_by_id' => true, 'mahara_user_get_users' => true);
     ////// WRITE DB tests ////
     $this->writetests = array('mahara_user_create_users' => true, 'mahara_user_update_users' => true, 'mahara_user_delete_users' => true, 'mahara_user_update_favourites' => true);
     ///// Authentication types ////
     $this->auths = array('token', 'user', 'oauth');
     //performance testing: number of time the web service are run
     $this->iteration = 1;
 }
Ejemplo n.º 2
0
 /**
  * local setup - outline the test functions in the framework
  *
  * @see TestBase::setUp()
  */
 public function setUp()
 {
     // default current user to admin
     parent::setUp();
     //protocols to test
     $this->testrest = true;
     $this->testxmlrpc = true;
     $this->testsoap = true;
     ////// READ-ONLY DB tests ////
     $this->readonlytests = array('mahara_institution_get_members' => true, 'mahara_institution_get_requests' => true);
     ////// WRITE DB tests ////
     $this->writetests = array('mahara_institution_add_members' => true, 'mahara_institution_remove_members' => true, 'mahara_institution_invite_members' => true, 'mahara_institution_decline_members' => true);
     ///// Authentication types ////
     $this->auths = array('token', 'user');
     //performance testing: number of time the web service are run
     $this->iteration = 1;
 }