FOSSology  4.7.1
Open Source License Compliance by Open Source Software
Fossology\Lib\Dao\LicenseDaoTest Class Reference
Inheritance diagram for Fossology\Lib\Dao\LicenseDaoTest:
Inheritance graph
Collaboration diagram for Fossology\Lib\Dao\LicenseDaoTest:
Collaboration graph

Public Member Functions

 testGetFileLicenseMatches ()
 
 testGetLicenseByShortName ()
 
 testGetLicenseId ()
 
 testGetLicenseRefs ()
 
 testGetLicenseShortnamesContained ()
 
 testGetLicenseIdPerPfileForAgentId ()
 
 testGetLicensesPerFileNameForAgentId ()
 
 testIsNewLicense ()
 
 testGetActiveLicensesForGroupScopesCandidatesByGroup ()
 
 testGetAgentFileLicenseMatchesWithLicenseMapping ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Private Member Functions

 setUpLicenseRefTable ()
 

Private Attributes

 $testDb
 
 $dbManager
 
 $licenseDao
 

Detailed Description

Definition at line 20 of file LicenseDaoTest.php.

Member Function Documentation

◆ setUpLicenseRefTable()

Fossology\Lib\Dao\LicenseDaoTest::setUpLicenseRefTable ( )
private

Setup license_ref table and rf_pk sequence

Definition at line 47 of file LicenseDaoTest.php.

◆ testGetActiveLicensesForGroupScopesCandidatesByGroup()

Fossology\Lib\Dao\LicenseDaoTest::testGetActiveLicensesForGroupScopesCandidatesByGroup ( )
Test:
  1. A candidate license belonging to another group must not leak into getActiveLicensesForGroup() for a different group.
  2. The owning group must see its own candidate, prefixed with '*'.
  3. Plain (non-candidate) licenses must remain visible to every group.

Definition at line 401 of file LicenseDaoTest.php.


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