FOSSology  4.4.0
Open Source License Compliance by Open Source Software
CompatibilityScheduledTest Class Reference

Functional test cases for compatibility agent using scheduler. More...

Inheritance diagram for CompatibilityScheduledTest:
Inheritance graph
Collaboration diagram for CompatibilityScheduledTest:
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

 setUpRepo ()
 Setup test repo mimicking install.
 
 rmRepo ()
 Remove the test repo.
 
 setUpTables ()
 Setup tables required by copyright agent.
 

Private Attributes

 $testDb
 
 $dbManager
 
 $agentDao
 
 $licenseDao
 
 $testInstaller
 
 $uploadDao
 
 $uploadPermDao
 
 $compatibilityDao
 
 $cliRunner
 
 $schedulerRunner
 
 $logger
 

Detailed Description

Functional test cases for compatibility agent using scheduler.

Definition at line 32 of file schedulerTest.php.

Member Function Documentation

◆ setUp()

CompatibilityScheduledTest::setUp ( )
protected

Setup the test cases and initialize the objects.

See also
PHPUnit_Framework_TestCase::setUp()

Definition at line 84 of file schedulerTest.php.

◆ tearDown()

CompatibilityScheduledTest::tearDown ( )
protected

Destruct the objects initialized during setUp()

See also
PHPUnit_Framework_TestCase::tearDown()

Definition at line 105 of file schedulerTest.php.

◆ testRun()

CompatibilityScheduledTest::testRun ( )

Run the test.

Test:
  1. Setup test tables
  2. Setup test repo
  3. Run compatibility on upload id 3
  4. Remove test repo
  5. Check some entries in comp_result table
Exceptions
InvalidAgentStageException

Definition at line 234 of file schedulerTest.php.


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