public function testGetSubscribedEvents(): void
{ static::
assertEquals([ 'app_flow_action.loaded' => 'unserialize',
], AppFlowActionLoadedSubscriber::
getSubscribedEvents());
} public function testUnserialize(): void
{ $idFlowAction = Uuid::
randomHex();
$appFlowAction =
new AppFlowActionEntity();
$appFlowAction->
setId($idFlowAction);
$iconPath = __DIR__ . '/../../Manifest/_fixtures/icon.png';
$fileIcon = '';
if (file_exists($iconPath)) { $fileIcon = \
file_get_contents($iconPath);
} $appFlowAction->
setIconRaw($fileIcon !== false ?
$fileIcon : null
);
$subscriber =
new AppFlowActionLoadedSubscriber();