Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     USVN_Translation::initTranslation("en_US", "app/locale");
     $data = array("users_id" => 2, "users_login" => 'testlogin', "users_password" => USVN_Crypt::crypt('testpassword'), "users_is_admin" => false);
     $this->db->insert("usvn_users", $data);
 }
Esempio n. 2
0
 public function setUp()
 {
     parent::setUp();
     $table = new USVN_Db_Table_Projects();
     $obj = $table->fetchNew();
     $obj->setFromArray(array('projects_name' => 'test', 'projects_start_date' => '1984-12-03 00:00:00'));
     $obj->save();
 }
Esempio n. 3
0
 public function setUp()
 {
     parent::setUp();
     $table = new USVN_Db_Table_Users();
     $this->_user = $table->fetchNew();
     $this->_user->setFromArray(array('users_login' => 'test', 'users_password' => 'password', 'users_firstname' => 'firstname', 'users_lastname' => 'lastname', 'users_email' => '*****@*****.**'));
     $this->_user->save();
 }
Esempio n. 4
0
 public function setUp()
 {
     parent::setUp();
     $this->group1 = $this->createGroup("grp1");
     $this->group2 = $this->createGroup("grp2");
     $this->users["test"] = $this->createUser("test", "test");
     $this->users["babar"] = $this->createUser("babar", "test");
     $this->users["john"] = $this->createUser("john", "test");
 }
Esempio n. 5
0
 public function setUp()
 {
     parent::setUp();
     $this->userTable = new USVN_Db_Table_Users();
     $this->user = $this->userTable->fetchNew();
     $this->user->users_login = '******';
     $this->user->users_password = USVN_Crypt::crypt("test");
     $this->userid = $this->user->save();
     $this->groups = new USVN_Db_Table_Groups();
     $group = $this->groups->insert(array("groups_id" => 42, "groups_name" => "test", "groups_description" => "test"));
     $this->groups->insert(array("groups_id" => 43, "groups_name" => "test2", "groups_description" => "test2"));
     $this->groups->insert(array("groups_id" => 44, "groups_name" => "test3", "groups_description" => "test3"));
 }
Esempio n. 6
0
 public function setUp()
 {
     parent::setUp();
     $table = new USVN_Db_Table_Projects();
     $project = $table->fetchNew();
     $project->setFromArray(array('projects_name' => 'project1', 'projects_start_date' => '1984-12-03 00:00:00'));
     $this->_projectid1 = $project->save();
     $table = new USVN_Db_Table_Projects();
     $project = $table->fetchNew();
     $project->setFromArray(array('projects_name' => 'project2', 'projects_start_date' => '1984-12-03 00:00:00'));
     $this->_projectid2 = $project->save();
     $table_files = new USVN_Db_Table_FilesRights();
     $id = $table_files->insert(array('projects_id' => $this->_projectid1, 'files_rights_path' => '/'));
 }
Esempio n. 7
0
 public function setUp()
 {
     parent::setUp();
     $table = new USVN_Db_Table_Users();
     $this->_user = $table->fetchNew();
     $this->_user->setFromArray(array('users_login' => 'test', 'users_password' => 'password', 'users_firstname' => 'firstname', 'users_lastname' => 'lastname', 'users_email' => '*****@*****.**'));
     $this->_user->save();
     $this->_projectid1 = USVN_Project::createProject(array('projects_name' => "project1"), "test", true, false, false, true)->id;
     $this->_projectid2 = USVN_Project::createProject(array('projects_name' => "project2"), "test", true, false, false, true)->id;
     $group_table = new USVN_Db_Table_Groups();
     $group = $group_table->fetchNew();
     $group->setFromArray(array("groups_name" => "toto"));
     $this->_groupid1 = $group->save();
     $group_table = new USVN_Db_Table_Groups();
     $group = $group_table->fetchNew();
     $group->setFromArray(array("groups_name" => "titi"));
     $this->_groupid2 = $group->save();
 }
Esempio n. 8
0
 public function setUp()
 {
     parent::setUp();
     $table = new USVN_Db_Table_Projects();
     $project = $table->fetchNew();
     $project->setFromArray(array('projects_name' => 'project1', 'projects_start_date' => '1984-12-03 00:00:00'));
     $this->_projectid1 = $project->save();
     $table = new USVN_Db_Table_Projects();
     $project = $table->fetchNew();
     $project->setFromArray(array('projects_name' => 'project2', 'projects_start_date' => '1984-12-03 00:00:00'));
     $this->_projectid2 = $project->save();
     $group_table = new USVN_Db_Table_Groups();
     $group = $group_table->fetchNew();
     $group->setFromArray(array("groups_name" => "toto"));
     $this->_groupid1 = $group->save();
     $group_table = new USVN_Db_Table_Groups();
     $group = $group_table->fetchNew();
     $group->setFromArray(array("groups_name" => "titi"));
     $this->_groupid2 = $group->save();
 }
Esempio n. 9
0
 public function setUp()
 {
     parent::setUp();
     $this->projectTable = new USVN_Db_Table_Projects();
     $this->project = $this->projectTable->fetchNew();
     $this->project->projects_name = 'testStem';
     $this->project->projects_start_date = '2007-04-01 15:29:57';
     $this->projectid = $this->project->save();
     $this->project2Table = new USVN_Db_Table_Projects();
     $this->project2 = $this->projectTable->fetchNew();
     $this->project2->projects_name = 'testNoplay';
     $this->project2->projects_start_date = '2007-04-01 15:29:57';
     $this->project2id = $this->project2->save();
     $this->groups = new USVN_Db_Table_Groups();
     $this->groups->insert(array("groups_id" => 42, "groups_name" => "test", "groups_description" => "test"));
     $this->groups->insert(array("groups_id" => 43, "groups_name" => "test2", "groups_description" => "test2"));
     $this->groups->insert(array("groups_id" => 44, "groups_name" => "test3", "groups_description" => "test3"));
     $this->users = new USVN_Db_Table_Users();
     $this->users->insert(array("users_id" => 42, "users_login" => "test", "users_password" => "pass"));
     $this->users = new USVN_Db_Table_Users();
     $this->users->insert(array("users_id" => 43, "users_login" => "test2", "users_password" => "pass"));
     $this->users = new USVN_Db_Table_Users();
     $this->users->insert(array("users_id" => 44, "users_login" => "test3", "users_password" => "pass"));
 }
Esempio n. 10
0
 public function tearDown()
 {
     unlink("tests/htpasswd");
     parent::tearDown();
 }
Esempio n. 11
0
 protected function tearDown()
 {
     USVN_DirectoryUtils::removeDirectory($this->_menudir);
     parent::tearDown();
 }
Esempio n. 12
0
 public function tearDown()
 {
     chdir($this->_path);
     parent::tearDown();
 }
Esempio n. 13
0
 public function tearDown()
 {
     parent::tearDown();
 }
Esempio n. 14
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->clean();
 }
Esempio n. 15
0
 public function setUp()
 {
     parent::setUp();
 }