FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Application\UserInfoTest Class Reference

Unit tests for UserInfo class. More...

Inheritance diagram for Fossology\Lib\Application\UserInfoTest:
Inheritance graph
Collaboration diagram for Fossology\Lib\Application\UserInfoTest:
Collaboration graph

Public Member Functions

 testGetUserId ()
 Test for UserInfo::getUserId() More...
 
 testGetGroupId ()
 Test for UserInfo::getGroupId() More...
 

Protected Member Functions

 setUp ()
 One time setup for test. More...
 

Private Attributes

 $userInfo
 

Detailed Description

Unit tests for UserInfo class.

Definition at line 14 of file UserInfoTest.php.

Member Function Documentation

◆ setUp()

Fossology\Lib\Application\UserInfoTest::setUp ( )
protected

One time setup for test.

See also
PHPUnit::Framework::TestCase::setUp()

Definition at line 25 of file UserInfoTest.php.

◆ testGetGroupId()

Fossology\Lib\Application\UserInfoTest::testGetGroupId ( )

Test for UserInfo::getGroupId()

Test:
  1. Set group id in session.
  2. Call UserInfo::getGroupId() and check if the id matches.

Definition at line 51 of file UserInfoTest.php.

◆ testGetUserId()

Fossology\Lib\Application\UserInfoTest::testGetUserId ( )

Test for UserInfo::getUserId()

Test:
  1. Set user id in session.
  2. Call UserInfo::getUserId() and check if the id matches.

Definition at line 36 of file UserInfoTest.php.

Member Data Documentation

◆ $userInfo

UserInfo Fossology\Lib\Application\UserInfoTest::$userInfo
private

UserInfo class object for testing

Definition at line 19 of file UserInfoTest.php.


The documentation for this class was generated from the following file: