28 require_once (
'../../../tests/fossologyTestCase.php');
29 require_once (
'../../../tests/TestEnvironment.php');
45 public $fromFolder=
'root';
65 print
"starting MoveUploadtest\n";
66 $loggedIn = $this->mybrowser->get($URL);
67 $this->assertTrue($this->myassertText($loggedIn,
'/Organize/'),
68 "FAIL! Could not find Organize menu\n");
69 $this->assertTrue($this->myassertText($loggedIn,
'/Uploads /'),
70 "testMoveUpload FAILED! coun not find Uploads menu\n");
72 $this->assertTrue($this->myassertText($loggedIn,
'/Move/'));
73 $this->upload2Move =
'gpl-3.0.txt';
74 $this->toFolder =
'Basic-Testing';
76 $this->
moveUpload($this->fromFolder, $this->toFolder, $this->upload2Move);
80 $page = $this->mybrowser->clickLink(
'Browse');
81 $page = $this->mybrowser->clickLink(
'Basic-Testing');
82 $this->assertTrue($this->myassertText($page,
"/$this->upload2Move/"),
83 "moveUploadTest FAILED! Folder $this->upload2Move does not exist under Basic-Testing folder\n");
93 $this->
moveUpload(
'Basic-Testing',
'root', $this->upload2Move);
Login($User=NULL, $Password=NULL)
moveUpload($oldFolder, $destFolder, $upload)