28 require_once (
'../../../tests/fossologyTestCase.php');
29 require_once (
'../../../tests/TestEnvironment.php');
44 function testaddUser()
48 print
"starting AddUserTest\n";
50 $loggedIn = $this->mybrowser->get($URL);
51 $this->assertTrue($this->myassertText($loggedIn,
'/Admin/'));
52 $this->assertTrue($this->myassertText($loggedIn,
'/Users/'));
53 $page = $this->mybrowser->get(
"$URL?mod=user_add");
55 $this->assertTrue($this->myassertText($page,
'/Add A User/'));
56 $this->assertTrue($this->myassertText($page,
'/To create a new user,/'));
58 $this->UserName =
'TestUser-' .
"$pid";
59 $result = $this->
addUser($this->UserName,
'Created for testing',
'fosstester',1,1,
'test');
63 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)