FOSSology  4.4.0
Open Source License Compliance by Open Source Software
test_common_license_file Class Reference
Inheritance diagram for test_common_license_file:
Inheritance graph
Collaboration diagram for test_common_license_file:
Collaboration graph

Public Member Functions

 testGetFileLicenses ()
 testing from GetFileLicenses in this test case, this pfile have only one license More...
 
 testGetFileLicensesDul ()
 testing from GetFileLicenses in this test case, this pfile have 2 same license More...
 
 testGetFileLicenses_string ()
 testing from GetFileLicenses_tring in this test case, this pfile have only one license More...
 
 testGetFilesWithLicense ()
 testing for GetFilesWithLicense More...
 
 testLevel1WithLicense ()
 testing for Level1WithLicense More...
 

Public Attributes

 $upload_pk = 0
 
 $uploadtree_pk_parent = 0
 
 $uploadtree_pk_child = 0
 
 $agent_pk = 0
 
 $uploadtree_tablename = 'uploadtree'
 

Protected Member Functions

 setUp ()
 initialization More...
 
 tearDown ()
 clean the env
 

Private Attributes

 $testDb
 
 $dbManager
 
 $logFileName
 

Detailed Description

Definition at line 24 of file test_common_license_file.php.

Member Function Documentation

◆ setUp()

test_common_license_file::setUp ( )
protected

initialization

preparation, add uploadtree, upload, pfile, license_file record

add nomos agent record

add license_ref record

get pfile id

add a license_file record

add child uploadtree record

Definition at line 43 of file test_common_license_file.php.

◆ testGetFileLicenses()

test_common_license_file::testGetFileLicenses ( )

testing from GetFileLicenses in this test case, this pfile have only one license

the expected license value

Definition at line 143 of file test_common_license_file.php.

◆ testGetFileLicenses_string()

test_common_license_file::testGetFileLicenses_string ( )

testing from GetFileLicenses_tring in this test case, this pfile have only one license

the expected license value

Definition at line 185 of file test_common_license_file.php.

◆ testGetFileLicensesDul()

test_common_license_file::testGetFileLicensesDul ( )

testing from GetFileLicenses in this test case, this pfile have 2 same license

the expected license value

Definition at line 162 of file test_common_license_file.php.

◆ testGetFilesWithLicense()

test_common_license_file::testGetFilesWithLicense ( )

testing for GetFilesWithLicense

get a license short name

Definition at line 201 of file test_common_license_file.php.

◆ testLevel1WithLicense()

test_common_license_file::testLevel1WithLicense ( )

testing for Level1WithLicense

get a license short name

Definition at line 221 of file test_common_license_file.php.


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