FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
OrgFoldersMenuTest-Create.php
1 <?php
2 
3 /***********************************************************
4  Copyright (C) 2008 Hewlett-Packard Development Company, L.P.
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License
8  version 2 as published by the Free Software Foundation.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  ***********************************************************/
19 
29 require_once ('../../../tests/fossologyTestCase.php');
30 require_once ('../../../tests/TestEnvironment.php');
31 
32 global $URL;
33 global $USER;
34 global $PASSWORD;
35 
37 {
38  public $mybrowser;
39 
40  function testCreateFolderMenu()
41  {
42  global $URL;
43  print "starting OrgFolderCreateMenuTest\n";
44 
45  $this->Login();
46  $loggedIn = $this->mybrowser->get($URL);
47  /* we get the home page to get rid of the user logged in page */
48  $page = $this->mybrowser->get($URL);
49  $this->assertTrue($this->myassertText($loggedIn, '/Organize/'));
50  $this->assertTrue($this->myassertText($loggedIn, '/Folders /'));
51  $this->assertTrue($this->myassertText($loggedIn, '/Create/'));
52  /* ok, this proves the text is on the page, let's see if we can
53  * get to the create page.
54  */
55  $page = $this->mybrowser->get("$URL?mod=folder_create");
56  $this->assertTrue($this->myassertText($page, '/Create a new Fossology folder/'));
57  }
58 }
59 ?>
Login($User=NULL, $Password=NULL)