LaravelWorkflowClientFake
in package
implements
LaravelWorkflowClientInterface
FinalYes
Laravel-native fake for class-shaped workflow starts and handles.
Table of Contents
Interfaces
- LaravelWorkflowClientInterface
- Laravel-native workflow starts and handles resolved from attributed service classes.
Properties
- $client : WorkflowClientFake
- $configuration : ServiceConfiguration
- $services : WorkflowServiceResolver
- $workflows : LaravelWorkflowClient
Methods
- __construct() : mixed
- assertQueryRequested() : void
- assertResultRequested() : void
- assertSignalSent() : void
- assertUpdateRequested() : void
- assertWorkflowStarted() : void
- handle() : WorkflowHandleInterface
- setQueryResult() : self
- setUpdateResult() : self
- setWorkflowResult() : self
- start() : WorkflowHandleInterface
- workflowClient() : WorkflowClientFake
- Framework-neutral fake retained for the low-level injectable interface.
Properties
$client read-only
private
WorkflowClientFake
$client
$configuration read-only
private
ServiceConfiguration
$configuration
$services read-only
private
WorkflowServiceResolver
$services
$workflows read-only
private
LaravelWorkflowClient
$workflows
Methods
__construct()
public
__construct(ServiceConfiguration $configuration[, WorkflowClientFake|null $client = null ]) : mixed
Parameters
- $configuration : ServiceConfiguration
- $client : WorkflowClientFake|null = null
assertQueryRequested()
public
assertQueryRequested(string $workflowId, string $name[, array<int, mixed>|null $arguments = null ]) : void
Parameters
- $workflowId : string
- $name : string
- $arguments : array<int, mixed>|null = null
assertResultRequested()
public
assertResultRequested(string $workflowId) : void
Parameters
- $workflowId : string
assertSignalSent()
public
assertSignalSent(string $workflowId, string $name[, array<int, mixed>|null $arguments = null ]) : void
Parameters
- $workflowId : string
- $name : string
- $arguments : array<int, mixed>|null = null
assertUpdateRequested()
public
assertUpdateRequested(string $workflowId, string $name[, array<int, mixed>|null $arguments = null ]) : void
Parameters
- $workflowId : string
- $name : string
- $arguments : array<int, mixed>|null = null
assertWorkflowStarted()
public
assertWorkflowStarted(class-string $workflowService[, array<int, mixed>|null $input = null ][, string|null $workflowId = null ][, WorkflowStartOptions|null $options = null ]) : void
Parameters
- $workflowService : class-string
- $input : array<int, mixed>|null = null
- $workflowId : string|null = null
- $options : WorkflowStartOptions|null = null
handle()
public
handle(class-string $workflowService, string $workflowId[, string|null $selectedRunId = null ]) : WorkflowHandleInterface
Parameters
- $workflowService : class-string
- $workflowId : string
- $selectedRunId : string|null = null
Return values
WorkflowHandleInterfacesetQueryResult()
public
setQueryResult(string $workflowId, string $name, mixed $result) : self
Parameters
- $workflowId : string
- $name : string
- $result : mixed
Return values
selfsetUpdateResult()
public
setUpdateResult(string $workflowId, string $name, mixed $result) : self
Parameters
- $workflowId : string
- $name : string
- $result : mixed
Return values
selfsetWorkflowResult()
public
setWorkflowResult(string $workflowId, mixed $result) : self
Parameters
- $workflowId : string
- $result : mixed
Return values
selfstart()
public
start(class-string $workflowService[, array<int, mixed> $input = [] ][, string|null $workflowId = null ][, WorkflowStartOptions|null $options = null ]) : WorkflowHandleInterface
Parameters
- $workflowService : class-string
- $input : array<int, mixed> = []
- $workflowId : string|null = null
- $options : WorkflowStartOptions|null = null
Return values
WorkflowHandleInterfaceworkflowClient()
Framework-neutral fake retained for the low-level injectable interface.
public
workflowClient() : WorkflowClientFake