30 require_once (
'../../../tests/fossologyTestCase.php');
31 require_once (
'../../../tests/TestEnvironment.php');
38 public $editFolderName;
49 $this->editFolderName =
"EditMe-$pid";
50 $this->
createFolder(
'Basic-Testing', $this->editFolderName);
53 function testEditFolder()
57 print
"starting EditFoldertest\n";
58 $loggedIn = $this->mybrowser->get($URL);
59 $this->assertTrue($this->myassertText($loggedIn,
'/Organize/'),
60 "FAIL! Could not find Organize menu\n");
61 $this->assertTrue($this->myassertText($loggedIn,
'/Folders /'));
62 $this->assertTrue($this->myassertText($loggedIn,
'/Edit Properties/'));
64 $this->newname =
"NewEditName-$pid";
65 $this->
editFolder($this->editFolderName, $this->newname,
66 "Folder name changed to $this->newname by testEditFolder");
68 $page = $this->mybrowser->get(
"$URL?mod=browse");
69 $this->assertTrue($this->myassertText($page,
"/$this->newname/"),
70 "editFolderTest FAILED! Folder $this->newname not found\n");
77 $page = $this->mybrowser->get(
"$URL?mod=admin_folder_delete");
78 $this->assertTrue($this->myassertText($page,
'/Delete Folder/'));
79 $FolderId = $this->
getFolderId($this->newname, $page,
'folder');
80 $this->assertTrue($this->mybrowser->setField(
'folder', $FolderId));
81 $page = $this->mybrowser->clickSubmit(
'Delete!');
82 $this->assertTrue($page);
83 $this->assertTrue($this->myassertText($page,
"/Deletion of folder $this->newname/"),
84 "EditFoldeTest tearDown FAILED! Deletion of $this->newname not found\n");
createFolder($parent=null, $name, $description=null)
editFolder($folder, $newName, $description=null)
getFolderId($folderName, $page, $selectName)
Login($User=NULL, $Password=NULL)