class ActionStartProcessIntegrationTest extends ActionIntegrationTestBase

This integration test checks if the start process correctly starts another process.

Properties

protected $PROCESS_ID from  ActionIntegrationTestBase
protected $TRANSITION_IDENTIFIER from  ActionIntegrationTestBase
protected $ACTION_HOOK_NAME
protected $ACTION_TITLE from  ActionIntegrationTestBase
protected $ACTION_IDENTIFIER from  ActionIntegrationTestBase
protected xm_workflows $instance from  ActionIntegrationTestBase
protected xmodel_workflows_process $process from  ActionIntegrationTestBase
protected xmodel_workflows_transition $transition from  ActionIntegrationTestBase

Methods

_before()

Clears the cache and the IM cache, deletes all workflow items and sets the instance variables.

xmodel_workflows_action
createAction(xmodel_workflows_transition $transition)

Creates the action for the transition and saves it in the DB.

bool|xmodel_workflows_wf_item|null
createItem(xmodel_workflows_process $process)

Starts the workflow of the process, returns the item.

xmodel_workflows_wf_item
performAction($config)

Performs the workflow process like the daemon should with a new action on each run:

  • Creates the action
  • sets the config
  • starts a workflow process and returns a new item
  • sets the User with the ID 1 as the creator
  • runs the daemon action.

array
processInfoProvider()

No description

testStartProcesses(int $processId, int $expectedItemCount, string $message)

Uses the data provider to tests if the corrects process is started exactly once.

Details

protected _before()

Clears the cache and the IM cache, deletes all workflow items and sets the instance variables.

Exceptions

Exception

protected xmodel_workflows_action createAction(xmodel_workflows_transition $transition)

Creates the action for the transition and saves it in the DB.

Parameters

xmodel_workflows_transition $transition

Return Value

xmodel_workflows_action

Exceptions

Exception

protected bool|xmodel_workflows_wf_item|null createItem(xmodel_workflows_process $process)

Starts the workflow of the process, returns the item.

Parameters

xmodel_workflows_process $process

Return Value

bool|xmodel_workflows_wf_item|null

Exceptions

Exception

protected xmodel_workflows_wf_item performAction($config)

Performs the workflow process like the daemon should with a new action on each run:

  • Creates the action
  • sets the config
  • starts a workflow process and returns a new item
  • sets the User with the ID 1 as the creator
  • runs the daemon action.

  • deletes the action
  • returns the re-loaded item

Parameters

$config

Return Value

xmodel_workflows_wf_item

Exceptions

Exception

at line 40
array processInfoProvider()

No description

Return Value

array

at line 25
testStartProcesses(int $processId, int $expectedItemCount, string $message)

Uses the data provider to tests if the corrects process is started exactly once.

Parameters

int $processId
int $expectedItemCount
string $message

Exceptions

Exception