17 require_once (
'../../../tests/fossologyTestCase.php');
18 require_once (
'../../../tests/TestEnvironment.php');
34 public $fromFolder=
'root';
54 print
"starting MoveUploadtest\n";
55 $loggedIn = $this->mybrowser->get($URL);
56 $this->assertTrue($this->myassertText($loggedIn,
'/Organize/'),
57 "FAIL! Could not find Organize menu\n");
58 $this->assertTrue($this->myassertText($loggedIn,
'/Uploads /'),
59 "testMoveUpload FAILED! coun not find Uploads menu\n");
61 $this->assertTrue($this->myassertText($loggedIn,
'/Move/'));
62 $this->upload2Move =
'gpl-3.0.txt';
63 $this->toFolder =
'Basic-Testing';
65 $this->
moveUpload($this->fromFolder, $this->toFolder, $this->upload2Move);
69 $page = $this->mybrowser->clickLink(
'Browse');
70 $page = $this->mybrowser->clickLink(
'Basic-Testing');
71 $this->assertTrue($this->myassertText($page,
"/$this->upload2Move/"),
72 "moveUploadTest FAILED! Folder $this->upload2Move does not exist under Basic-Testing folder\n");
82 $this->
moveUpload(
'Basic-Testing',
'root', $this->upload2Move);
moveUpload($oldFolder, $destFolder, $upload)
Login($User=NULL, $Password=NULL)