FOSSology  3.2.0rc1
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'
 
 $DB_COMMAND = ""
 
 $DB_NAME = ""
 

Protected Member Functions

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

Private Attributes

 $testDb
 
 $dbManager
 
 $logFileName
 

Detailed Description

Definition at line 35 of file test_common_license_file.php.

Member Function Documentation

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 56 of file test_common_license_file.php.

test_common_license_file::tearDown ( )
protected

clean the env

delte the uploadtree record

delte the license_file record

delte the upload record

delte the pfile record

delete the agent record

Definition at line 277 of file test_common_license_file.php.

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 160 of file test_common_license_file.php.

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 212 of file test_common_license_file.php.

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 183 of file test_common_license_file.php.

test_common_license_file::testGetFilesWithLicense ( )

testing for GetFilesWithLicense

get a license short name

Definition at line 232 of file test_common_license_file.php.

test_common_license_file::testLevel1WithLicense ( )

testing for Level1WithLicense

get a license short name

Definition at line 256 of file test_common_license_file.php.


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