16 require_once (
'fossologyTestCase.php');
17 require_once (
'TestEnvironment.php');
30 function testcreateSuiUsers()
36 'Read only test user: simple ui,NULL,1,1,NULL,NULL,rouser,n,1,simple',
38 'Download test user:simple ui,NULL,2,1,NULL,NULL,downloader,n,1,simple',
40 'Read/Write test user: simple ui,NULL,3,1,NULL,NULL,rwuser,n,1,simple',
42 'Upload test user: simple ui,NULL,4,1,NULL,NULL,uploader,n,1,simple',
44 'Anaylyze test user: simple ui,NULL,5,1,NULL,NULL,anauser,n,1,simple',
48 foreach($Users as $user => $parms)
50 list($description, $email, $access, $folder,
51 $pass1, $pass2, $Enote, $Bucketpool, $Ui) = explode(
',',$parms);
55 $this->fail(
"Could not create folder $user for user $user\n");
57 $page = $this->mybrowser->get(
"$URL?mod=folder_create");
58 $folderId = $this->
getFolderId($user, $page,
'parentid');
60 $added = $this->
addUser($user, $description, $email, $access, $folderId,
61 $pass1 ,$Enote, $Bucketpool, $Ui);
62 if(preg_match(
'/User already exists/',$added, $matches)) {
67 $this->fail(
"User $user was not added to the fossology database\n$added\n");
addUser($UserName, $Description=NULL, $Email=NULL, $Access=1, $Folder=1, $Password=NULL, $EmailNotify='y')
createFolder($parent, $name, $description=null)
getFolderId($folderName, $page, $selectName)
Login($User=NULL, $Password=NULL)
list_t type structure used to keep various lists. (e.g. there are multiple lists).