FOSSology  4.7.1
Open Source License Compliance by Open Source Software
Fossology\Lib\Auth\AuthTest Class Reference

Test for class Auth. More...

Inheritance diagram for Fossology\Lib\Auth\AuthTest:
Inheritance graph
Collaboration diagram for Fossology\Lib\Auth\AuthTest:
Collaboration graph

Public Member Functions

 testIsAdminFalseWhenSessionEmpty ()
 
 testIsAdminFalseWhenUserLevelBelowAdmin ()
 
 testIsAdminTrueWhenUserLevelIsAdmin ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Detailed Description

Test for class Auth.

Definition at line 14 of file AuthTest.php.

Member Function Documentation

◆ testIsAdminFalseWhenSessionEmpty()

Fossology\Lib\Auth\AuthTest::testIsAdminFalseWhenSessionEmpty ( )
Test:
  1. isAdmin() must return false, not raise a warning, when nothing has populated the session yet (e.g. an anonymous request to a page with REQUIRES_LOGIN => false).

Definition at line 32 of file AuthTest.php.

◆ testIsAdminFalseWhenUserLevelBelowAdmin()

Fossology\Lib\Auth\AuthTest::testIsAdminFalseWhenUserLevelBelowAdmin ( )
Test:
  1. isAdmin() must return false for a logged-in, non-admin user level.

Definition at line 41 of file AuthTest.php.

◆ testIsAdminTrueWhenUserLevelIsAdmin()

Fossology\Lib\Auth\AuthTest::testIsAdminTrueWhenUserLevelIsAdmin ( )
Test:
  1. isAdmin() must return true when the session user level is exactly PERM_ADMIN.

Definition at line 52 of file AuthTest.php.


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