19 require_once (
'../../../tests/fossologyTestCase.php');
20 require_once (
'../../../tests/TestEnvironment.php');
27 public $editFolderName;
38 $this->editFolderName =
"EditMe-$pid";
39 $this->
createFolder(
'Basic-Testing', $this->editFolderName);
42 function testEditFolder()
46 print
"starting EditFoldertest\n";
47 $loggedIn = $this->mybrowser->get($URL);
48 $this->assertTrue($this->myassertText($loggedIn,
'/Organize/'),
49 "FAIL! Could not find Organize menu\n");
50 $this->assertTrue($this->myassertText($loggedIn,
'/Folders /'));
51 $this->assertTrue($this->myassertText($loggedIn,
'/Edit Properties/'));
53 $this->newname =
"NewEditName-$pid";
54 $this->
editFolder($this->editFolderName, $this->newname,
55 "Folder name changed to $this->newname by testEditFolder");
57 $page = $this->mybrowser->get(
"$URL?mod=browse");
58 $this->assertTrue($this->myassertText($page,
"/$this->newname/"),
59 "editFolderTest FAILED! Folder $this->newname not found\n");
66 $page = $this->mybrowser->get(
"$URL?mod=admin_folder_delete");
67 $this->assertTrue($this->myassertText($page,
'/Delete Folder/'));
68 $FolderId = $this->
getFolderId($this->newname, $page,
'folder');
69 $this->assertTrue($this->mybrowser->setField(
'folder', $FolderId));
70 $page = $this->mybrowser->clickSubmit(
'Delete!');
71 $this->assertTrue($page);
72 $this->assertTrue($this->myassertText($page,
"/Deletion of folder $this->newname/"),
73 "EditFoldeTest tearDown FAILED! Deletion of $this->newname not found\n");
editFolder($folder, $newName, $description=null)
createFolder($parent, $name, $description=null)
getFolderId($folderName, $page, $selectName)
Login($User=NULL, $Password=NULL)