You are here

public function RenderStackTest::test_supportsDynamicAssets in Render cache 7.2

@covers ::supportsDynamicAssets()

File

tests/src/Cache/RenderStackTest.php, line 181
Contains \Drupal\render_cache\Tests\Cache\RenderStackTest

Class

RenderStackTest
@coversDefaultClass \Drupal\render_cache\Cache\RenderStack @group cache

Namespace

Drupal\render_cache\Tests\Cache

Code

public function test_supportsDynamicAssets() {
  $this
    ->assertFalse($this->renderStack
    ->supportsDynamicAssets(), 'supportsDynamicAssets() is FALSE by default.');
  $this->renderStack
    ->supportsDynamicAssets(TRUE);
  $this
    ->assertTrue($this->renderStack
    ->supportsDynamicAssets(), 'supportsDynamicAssets() is TRUE after set.');
  $this->renderStack
    ->supportsDynamicAssets(FALSE);
  $this
    ->assertFalse($this->renderStack
    ->supportsDynamicAssets(), 'supportsDynamicAssets() is FALSE after set.');
}