if ($appAction) { $appActionSequence =
new ActionSequence();
$appActionSequence->appFlowActionId =
$ids->
get('AppActionId'
);
$appActionSequence->sequenceId =
$ids->
get('AppActionSequenceId'
);
$appActionSequence->action = 'app.action';
$appFlowActionProvider->
expects(static::
once())->
method('getWebhookPayloadAndHeaders'
)->
willReturn([ 'headers' =>
[],
'payload' =>
[],
]);
$eventDispatcher->
expects(static::
once())->
method('dispatch'
)->
with( new AppFlowActionEvent('app.action',
[],
[]),
'app.action'
);
$actionSequences[] =
$appActionSequence;
} $flow =
new Flow($ids->
get('flowId'
),
$actionSequences);
$storableFlow =
new StorableFlow('',
$context);
if (\
in_array(self::ACTION_ADD_ORDER_TAG,
array_merge_recursive($actionSequencesExecuted,
$actionSequencesTrueCase,
$actionSequencesFalseCase), true
)) { $addOrderTagAction->
expects(static::
once())->
method('handleFlow'
)->
with($storableFlow);
}