FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
AboutMenuTest.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 
28 require_once('../../../tests/fossologyTestCase.php');
29 require_once ('../../../tests/TestEnvironment.php');
30 
31 global $URL;
32 global $USER;
33 global $PASSWORD;
34 
35 class TestAboutMenu extends fossologyTestCase
36 {
37  public $mybrowser;
38 
39  function testMenuAbout()
40  {
41  global $URL;
42  print "starting testMenuAbout\n";
43  $mybrowser = new SimpleBrowser();
44  $page = $this->mybrowser->get($URL);
45  $this->assertTrue($page);
46  $this->myassertText($page, '/Welcome to FOSSology/');
47  $this->mybrowser->click('Help');
48  $this->mybrowser->click('About');
49  $this->myassertText($page, '/About FOSSology/');
50  }
51 }
52 ?>