FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Reuser\Test\SchedulerTestRunnerMock Class Reference

Create mock objects for reuser. More...

Inheritance diagram for Fossology\Reuser\Test\SchedulerTestRunnerMock:
Inheritance graph
Collaboration diagram for Fossology\Reuser\Test\SchedulerTestRunnerMock:
Collaboration graph

Public Member Functions

 __construct (DbManager $dbManager, AgentDao $agentDao, ClearingDao $clearingDao, UploadDao $uploadDao, ClearingDecisionFilter $clearingDecisionFilter, TreeDao $treeDao, CopyrightDao $copyrightDao)
 
 run ($uploadId, $userId=2, $groupId=2, $jobId=1, $args="")
 Function to run agent from scheduler. More...
 

Private Attributes

 $dbManager
 
 $clearingDao
 
 $copyrightDao
 
 $clearingDecisionFilter
 
 $clearingDecisionProcessor
 
 $uploadDao
 
 $agentDao
 
 $treeDao
 

Detailed Description

Create mock objects for reuser.

Definition at line 31 of file SchedulerTestRunnerMock.php.

Member Function Documentation

◆ run()

Fossology\Reuser\Test\SchedulerTestRunnerMock::run (   $uploadId,
  $userId = 2,
  $groupId = 2,
  $jobId = 1,
  $args = "" 
)

Function to run agent from scheduler.

Parameters
int$uploadIdUpload id to run agent on
int$userIdUser id to use
int$groupIdGroup id to use
int$jobIdJob id to run
string$argsArguments for scheduler
Returns
array Success code, output, return code

Implements Fossology\Reuser\Test\SchedulerTestRunner.

Definition at line 81 of file SchedulerTestRunnerMock.php.

Member Data Documentation

◆ $agentDao

AgentDao Fossology\Reuser\Test\SchedulerTestRunnerMock::$agentDao
private

AgentDao object

Definition at line 61 of file SchedulerTestRunnerMock.php.

◆ $clearingDao

ClearingDao Fossology\Reuser\Test\SchedulerTestRunnerMock::$clearingDao
private

ClearingDao object

Definition at line 41 of file SchedulerTestRunnerMock.php.

◆ $clearingDecisionFilter

ClearingDecisionFilter Fossology\Reuser\Test\SchedulerTestRunnerMock::$clearingDecisionFilter
private

ClearingDecisionFilter object

Definition at line 49 of file SchedulerTestRunnerMock.php.

◆ $clearingDecisionProcessor

ClearingDecisionProcessor Fossology\Reuser\Test\SchedulerTestRunnerMock::$clearingDecisionProcessor
private

ClearingDecisionProcessor object

Definition at line 53 of file SchedulerTestRunnerMock.php.

◆ $copyrightDao

CopyrightDao Fossology\Reuser\Test\SchedulerTestRunnerMock::$copyrightDao
private

CopyrightDao object

Definition at line 45 of file SchedulerTestRunnerMock.php.

◆ $dbManager

DbManager Fossology\Reuser\Test\SchedulerTestRunnerMock::$dbManager
private

DB manager object

Definition at line 36 of file SchedulerTestRunnerMock.php.

◆ $treeDao

TreeDao Fossology\Reuser\Test\SchedulerTestRunnerMock::$treeDao
private

TreeDao object

Definition at line 65 of file SchedulerTestRunnerMock.php.

◆ $uploadDao

UploadDao Fossology\Reuser\Test\SchedulerTestRunnerMock::$uploadDao
private

Upload Dao object

Definition at line 57 of file SchedulerTestRunnerMock.php.


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