FOSSology  4.4.0
Open Source License Compliance by Open Source Software
SearchMenuTest.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 
24 {
25  public $mybroswer;
26 
27  function testSearchMenu()
28  {
29  global $URL;
30  print "starting SearchMenuTest\n";
31  $browser = new SimpleBrowser();
32  $this->setBrowser($browser);
33  $page = $this->mybrowser->get($URL);
34  $this->assertTrue($page);
35  $this->myassertText($page, '/Welcome to FOSSology/');
36  $page = $this->mybrowser->click('Search');
37  $this->myassertText($page, '/Search for File/');
38  $this->myassertText($page, '/Enter the filename to find/');
39  }
40 }