public function RenderCachePlaceholderTest::test_postRenderCacheMultiCallback in Render cache 7.2
@depends test_getPlaceholder_multi @covers ::postRenderCacheMultiCallback()
File
- tests/
src/ Cache/ RenderCachePlaceholderTest.php, line 188 - Contains \Drupal\render_cache\Tests\Cache\RenderCachePlaceholderTest
Class
- RenderCachePlaceholderTest
- @coversDefaultClass \Drupal\render_cache\Cache\RenderCachePlaceholder @group cache
Namespace
Drupal\render_cache\Tests\CacheCode
public function test_postRenderCacheMultiCallback($render) {
$expected = $render;
$this
->processPostRenderCache($render);
$expected['#markup'] = $this->data['multi_1']['return'] . '|' . $this->data['multi_2']['return'];
$this
->assertEquals($expected, $render, 'Placeholders have been replaced.');
}