![]() |
FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Unit test cases for copyright agent using scheduler. More...


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 | |
| $dbManager | |
| $licenseDao | |
| $uploadDao | |
| $uploadPermDao | |
| $copyrightDao | |
Unit test cases for copyright agent using scheduler.
Definition at line 43 of file schedulerTest.php.
|
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.
| int | $uploadId | Upload id to be scanned |
Definition at line 109 of file schedulerTest.php.
|
protected |
Setup the test cases and initialize the objects.
Definition at line 74 of file schedulerTest.php.
|
protected |
Destruct the objects initialized during setUp()
Definition at line 91 of file schedulerTest.php.
| CopyrightScheduledTest::testRun | ( | ) |
Run the test.
Definition at line 188 of file schedulerTest.php.
|
private |
Object of CopyrightDao
Definition at line 68 of file schedulerTest.php.
|
private |
Database manager from test database
Definition at line 52 of file schedulerTest.php.
|
private |
Object of LicenseDao
Definition at line 56 of file schedulerTest.php.
|
private |
Object for test database
Definition at line 48 of file schedulerTest.php.
|
private |
Object of UploadDao
Definition at line 60 of file schedulerTest.php.
|
private |
Mockery of UploadPermissionDao
Definition at line 64 of file schedulerTest.php.