public function PlaceholderGeneratorTest::providerCreatePlaceholderGeneratesValidHtmlMarkup in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php \Drupal\Tests\Core\Render\PlaceholderGeneratorTest::providerCreatePlaceholderGeneratesValidHtmlMarkup()
Return value
array
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ PlaceholderGeneratorTest.php, line 42
Class
- PlaceholderGeneratorTest
- @coversDefaultClass \Drupal\Core\Render\PlaceholderGenerator @group Render
Namespace
Drupal\Tests\Core\RenderCode
public function providerCreatePlaceholderGeneratesValidHtmlMarkup() {
return [
'multiple-arguments' => [
[
'#lazy_builder' => [
'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
[
'foo',
'bar',
],
],
],
],
'special-character-&' => [
[
'#lazy_builder' => [
'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
[
'foo&bar',
],
],
],
],
'special-character-"' => [
[
'#lazy_builder' => [
'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
[
'foo"bar',
],
],
],
],
'special-character-<' => [
[
'#lazy_builder' => [
'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
[
'foo<bar',
],
],
],
],
'special-character->' => [
[
'#lazy_builder' => [
'Drupal\\Tests\\Core\\Render\\PlaceholdersTest::callback',
[
'foo>bar',
],
],
],
],
];
}