You are here

public function RenderCachePlaceholderTest::test_getPlaceholder in Render cache 7.2

@covers ::getPlaceholder()

File

tests/src/Cache/RenderCachePlaceholderTest.php, line 110
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_getPlaceholder() {
  $class_name = $this->staticClass;
  $render = $class_name::getPlaceholder($this->data['single']['callback'], $this->data['single']['args']);
  $this
    ->assertEquals($this->data['single']['placeholder'], $render, 'getPlaceholder() returns the right output for single callback.');
  return $render;
}