$payload =
$flowEntity->
getPayload();
static::
assertIsString($payload);
$flow =
unserialize($payload);
static::
assertInstanceOf(Flow::
class,
$flow);
static::
assertInstanceOf(IfSequence::
class,
$flow->
getSequences()[0
]);
$flat =
$flow->
getFlat();
static::
assertInstanceOf(ActionSequence::
class,
$flat[$this->ids->
create('flow_sequence_id1'
)]);
static::
assertInstanceOf(IfSequence::
class,
$flat[$this->ids->
create('flow_sequence_id'
)]);
$flow->
jump($this->ids->
create('flow_sequence_id1'
));
static::
assertInstanceOf(ActionSequence::
class,
$flow->
getSequences()[0
]);
} private function createTestData(): void
{ $this->flowRepository->
create([[ 'id' =>
$this->ids->
create('flow_id'
),
'name' => 'Create Order',
'eventName' => CheckoutOrderPlacedEvent::EVENT_NAME,
'priority' => 1,
'active' => true,