yield [[['@type' => 'ActionCard'
]],
new ActionCard()];
yield [[['@type' => 'HttpPOST'
]],
new HttpPostAction()];
yield [[['@type' => 'InvokeAddInCommand'
]],
new InvokeAddInCommandAction()];
yield [[['@type' => 'OpenUri'
]],
new OpenUriAction()];
} public function testActivity() { $activity =
(new Activity()) ->
image($imageUrl = 'https://symfony.com/logo.png'
) ->
title($title = 'Activities'
) ->
subtitle($subtitle = 'for Admins only'
) ->
text($text = 'Hey Symfony!'
);
$section =
(new Section()) ->
activity($activity);
$this->
assertSame( [ 'activityImage' =>
$imageUrl,
'activityTitle' =>
$title,
'activitySubtitle' =>
$subtitle,
'activityText' =>
$text,
],