FOSSology  4.4.0
Open Source License Compliance by Open Source Software
OrgFoldersMenuTest-Create.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 
17 require_once ('../../../tests/fossologyTestCase.php');
18 require_once ('../../../tests/TestEnvironment.php');
19 
20 global $URL;
21 global $USER;
22 global $PASSWORD;
23 
25 {
26  public $mybrowser;
27 
28  function testCreateFolderMenu()
29  {
30  global $URL;
31  print "starting OrgFolderCreateMenuTest\n";
32 
33  $this->Login();
34  $loggedIn = $this->mybrowser->get($URL);
35  /* we get the home page to get rid of the user logged in page */
36  $page = $this->mybrowser->get($URL);
37  $this->assertTrue($this->myassertText($loggedIn, '/Organize/'));
38  $this->assertTrue($this->myassertText($loggedIn, '/Folders /'));
39  $this->assertTrue($this->myassertText($loggedIn, '/Create/'));
40  /* ok, this proves the text is on the page, let's see if we can
41  * get to the create page.
42  */
43  $page = $this->mybrowser->get("$URL?mod=folder_create");
44  $this->assertTrue($this->myassertText($page, '/Create a new Fossology folder/'));
45  }
46 }
Login($User=NULL, $Password=NULL)