You are here

public function RenderCachePlaceholderTest::test_postRenderCacheMultiCallback_noPlaceholder in Render cache 7.2

@depends test_getPlaceholder_multi @covers ::postRenderCacheMultiCallback()

File

tests/src/Cache/RenderCachePlaceholderTest.php, line 199
Contains \Drupal\render_cache\Tests\Cache\RenderCachePlaceholderTest

Class

RenderCachePlaceholderTest
@coversDefaultClass \Drupal\render_cache\Cache\RenderCachePlaceholder @group cache

Namespace

Drupal\render_cache\Tests\Cache

Code

public function test_postRenderCacheMultiCallback_noPlaceholder($render) {
  $expected = $render;
  $render['#markup'] = 'Bar12345';
  $this
    ->processPostRenderCache($render);
  $expected['#markup'] = 'Bar12345';
  $this
    ->assertEquals($expected, $render, 'Placeholders have not been replaced.');
}