3 declare(strict_types = 1);
21 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
29 '<f:be.menus.actionMenuItem label="{label}" controller="{controller}" action="{action}" />',
31 'label' =>
'label<>&"\'',
32 'controller' =>
'controller<>&"\'',
33 'action' =>
'action<>&"\'',
35 '<option value="">label<>&"'</option>',
38 '{f:be.menus.actionMenuItem(label:label, controller:controller, action:action)}',
40 'label' =>
'label<>&"\'',
41 'controller' =>
'controller<>&"\'',
42 'action' =>
'action<>&"\'',
44 '<option value="">label<>&"'</option>',
46 'inline syntax with quotes' => [
47 '{f:be.menus.actionMenuItem(label:\'{label}\', controller:\'{controller}\', action:\'{action}\')}',
49 'label' =>
'label<>&"\'',
50 'controller' =>
'controller<>&"\'',
51 'action' =>
'action<>&"\'',
53 '<option value="">label<>&"'</option>',
66 public function isRendered(
string $source, array $variables,
string $expectation): void
69 $view->setTemplateSource($source);
70 $view->assignMultiple($variables);
71 self::assertSame($expectation, $view->render());