public function ChainedPlaceholderStrategyTest::testProcessPlaceholdersNoStrategies in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Render/Placeholder/ChainedPlaceholderStrategyTest.php \Drupal\Tests\Core\Render\Placeholder\ChainedPlaceholderStrategyTest::testProcessPlaceholdersNoStrategies()
@covers ::processPlaceholders
@expectedException \AssertionError @expectedExceptionMessage At least one placeholder strategy must be present; by default the fallback strategy \Drupal\Core\Render\Placeholder\SingleFlushStrategy is always present.
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ Placeholder/ ChainedPlaceholderStrategyTest.php, line 132 - Contains \Drupal\Tests\Core\Render\Placeholder\ChainedPlaceholderStrategyTest.
Class
- ChainedPlaceholderStrategyTest
- @coversDefaultClass \Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy @group Render
Namespace
Drupal\Tests\Core\Render\PlaceholderCode
public function testProcessPlaceholdersNoStrategies() {
// Placeholders but no strategies defined.
$placeholders = [
'assert-me' => [
'#markup' => 'I-am-a-llama-that-will-lead-to-an-assertion-by-the-chained-placeholder-strategy.',
],
];
$chained_placeholder_strategy = new ChainedPlaceholderStrategy();
$chained_placeholder_strategy
->processPlaceholders($placeholders);
}