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

Public Member Functions

 testRun ()
 Run the test. More...
 

Protected Member Functions

 setUp ()
 Setup the test cases and initialize the objects. More...
 
 tearDown ()
 Destruct the objects initialized during setUp() More...
 

Private Member Functions

 runCopyright ($uploadId)
 Run copyright on a given upload id. More...
 
 setUpRepo ()
 Setup test repo mimicking install.
 
 rmRepo ()
 Remove the test repo.
 
 setUpTables ()
 Setup tables required by copyright agent.
 

Private Attributes

 $testDb
 
 $testInstaller
 
 $dbManager
 
 $licenseDao
 
 $uploadDao
 
 $uploadPermDao
 
 $copyrightDao
 

Detailed Description

Definition at line 33 of file schedulerTest.php.

Member Function Documentation

◆ runCopyright()

schedulerTest::runCopyright (   $uploadId)
private

Run copyright on a given upload id.

Setup copyright agent and test environment then run copyright agent and pass the given upload id to scan.

Reports error if agent return code is not 0.

Parameters
int$uploadIdUpload id to be scanned
Returns
string Copyright findings returned by the agent

Definition at line 104 of file schedulerTest.php.

◆ setUp()

schedulerTest::setUp ( )
protected

Setup the test cases and initialize the objects.

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 69 of file schedulerTest.php.

◆ tearDown()

schedulerTest::tearDown ( )
protected

Destruct the objects initialized during setUp()

See also
PHPUnit_Framework_TestCase::tearDown()

Definition at line 86 of file schedulerTest.php.

◆ testRun()

schedulerTest::testRun ( )

Run the test.

  1. Setup test tables
  2. Setup test repo
  3. Run copyright on upload id 1
  4. Remove test repo
  5. Check entries in copyright table

Definition at line 178 of file schedulerTest.php.

Member Data Documentation

◆ $copyrightDao

CopyrightDao schedulerTest::$copyrightDao
private

Object of CopyrightDao

Definition at line 63 of file schedulerTest.php.

◆ $dbManager

DbManager schedulerTest::$dbManager
private

Database manager from test database

Definition at line 47 of file schedulerTest.php.

◆ $licenseDao

LicenseDao schedulerTest::$licenseDao
private

Object of LicenseDao

Definition at line 51 of file schedulerTest.php.

◆ $testDb

TestPgDb schedulerTest::$testDb
private

Object for test database

Definition at line 38 of file schedulerTest.php.

◆ $testInstaller

TestInstaller schedulerTest::$testInstaller
private

Object for testinstaller

Definition at line 42 of file schedulerTest.php.

◆ $uploadDao

UploadDao schedulerTest::$uploadDao
private

Object of UploadDao

Definition at line 55 of file schedulerTest.php.

◆ $uploadPermDao

UploadPermissionDao schedulerTest::$uploadPermDao
private

Mockery of UploadPermissionDao

Definition at line 59 of file schedulerTest.php.


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