public function ChainedPlaceholderStrategyTest::testProcessPlaceholders 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::testProcessPlaceholders()
@covers ::addPlaceholderStrategy @covers ::processPlaceholders
@dataProvider providerProcessPlaceholders
File
- core/
tests/ Drupal/ Tests/ Core/ Render/ Placeholder/ ChainedPlaceholderStrategyTest.php, line 25 - 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 testProcessPlaceholders($strategies, $placeholders, $result) {
$chained_placeholder_strategy = new ChainedPlaceholderStrategy();
foreach ($strategies as $strategy) {
$chained_placeholder_strategy
->addPlaceholderStrategy($strategy);
}
$this
->assertEquals($result, $chained_placeholder_strategy
->processPlaceholders($placeholders));
}