FOSSology  4.4.0
Open Source License Compliance by Open Source Software
login.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2008 Hewlett-Packard Development Company, L.P.
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
15 require_once('../../../tests/fossologyTestCase.php');
16 require_once ('../../../tests/TestEnvironment.php');
17 
18 global $URL;
19 global $USER;
20 global $PASSWORD;
21 
22 class TestRepoLogin extends fossologyTestCase{
23 
24  function testLogin(){
25 
26  global $URL;
27  print "login test starting\n";
28  $browser = new SimpleBrowser();
29  $this->setBrowser($browser);
30  $this->Login();
31  $page = $this->mybrowser->getContent();
32  //print "************LOGIN: Page after Login is:************\n";
33  //$this->dump($page);
34  preg_match('/FOSSology/', $page, $matches);
35  //$this->dump($matches);
36  $this->assertTrue($matches);
37  }
38 }
Login($User=NULL, $Password=NULL)