FOSSology  4.4.0
Open Source License Compliance by Open Source Software
OrgFoldersMenuTest-Move.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2008 Hewlett-Packard Development Company, L.P.
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
15 require_once ('../../../tests/fossologyTestCase.php');
16 require_once ('../../../tests/TestEnvironment.php');
17 
18 global $URL;
19 
21 {
22 
23  function testFolderMoveMenu()
24  {
25  global $URL;
26  print "starting OrgFolderMoveMenuTest\n";
27 
28  $this->Login();
29  /* we get the home page to get rid of the user logged in page */
30  $loggedIn = $this->mybrowser->get($URL);
31  $this->assertTrue($this->myassertText($loggedIn, '/Organize/'));
32  $this->assertTrue($this->myassertText($loggedIn, '/Folders /'));
33  $this->assertTrue($this->myassertText($loggedIn, '/Create/'),
34  "Organize->Folders->Create NOT found!\n");
35  /* ok, this proves the text is on the page, let's see if we can
36  * get to the move page.
37  */
38  $page = $this->mybrowser->get("$URL?mod=folder_move");
39  $this->assertTrue($this->myassertText($page, '/Move Folder/'));
40  $this->assertTrue($this->myassertText($page, '/destination folder:/'));
41  }
42 }
Login($User=NULL, $Password=NULL)