17 require_once (
'../../../tests/fossologyTestCase.php');
18 require_once (
'../../../tests/TestEnvironment.php');
33 function testaddUser()
37 print
"starting AddUserTest\n";
39 $loggedIn = $this->mybrowser->get($URL);
40 $this->assertTrue($this->myassertText($loggedIn,
'/Admin/'));
41 $this->assertTrue($this->myassertText($loggedIn,
'/Users/'));
42 $page = $this->mybrowser->get(
"$URL?mod=user_add");
44 $this->assertTrue($this->myassertText($page,
'/Add A User/'));
45 $this->assertTrue($this->myassertText($page,
'/To create a new user,/'));
47 $this->UserName =
'TestUser-' .
"$pid";
48 $result = $this->
addUser($this->UserName,
'Created for testing',
'fosstester',1,1,
'test');
52 print
"Removing user $this->UserName\n";
addUser($UserName, $Description=NULL, $Email=NULL, $Access=1, $Folder=1, $Password=NULL, $EmailNotify='y')
Login($User=NULL, $Password=NULL)