FOSSology  4.4.0
Open Source License Compliance by Open Source Software
AboutMenuTest.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 
16 require_once('../../../tests/fossologyTestCase.php');
17 require_once ('../../../tests/TestEnvironment.php');
18 
19 global $URL;
20 global $USER;
21 global $PASSWORD;
22 
23 class TestAboutMenu extends fossologyTestCase
24 {
25  public $mybrowser;
26 
27  function testMenuAbout()
28  {
29  global $URL;
30  print "starting testMenuAbout\n";
31  $mybrowser = new SimpleBrowser();
32  $page = $this->mybrowser->get($URL);
33  $this->assertTrue($page);
34  $this->myassertText($page, '/Welcome to FOSSology/');
35  $this->mybrowser->click('Help');
36  $this->mybrowser->click('About');
37  $this->myassertText($page, '/About FOSSology/');
38  }
39 }