FOSSology  3.2.0rc1
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)
 
 run ($uploadId, $userId=2, $groupId=2, $jobId=1, $args="")
 Function to run agent from scheduler. More...
 

Private Attributes

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

Detailed Description

Create mock objects for reuser.

Definition at line 41 of file SchedulerTestRunnerMock.php.

Member Function Documentation

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 84 of file SchedulerTestRunnerMock.php.

Member Data Documentation

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

AgentDao object

Definition at line 67 of file SchedulerTestRunnerMock.php.

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

ClearingDao object

Definition at line 51 of file SchedulerTestRunnerMock.php.

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

ClearingDecisionFilter object

Definition at line 55 of file SchedulerTestRunnerMock.php.

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

ClearingDecisionProcessor object

Definition at line 59 of file SchedulerTestRunnerMock.php.

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

DB manager object

Definition at line 46 of file SchedulerTestRunnerMock.php.

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

TreeDao object

Definition at line 71 of file SchedulerTestRunnerMock.php.

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

Upload Dao object

Definition at line 63 of file SchedulerTestRunnerMock.php.


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