You are here

public function RenderStackTest::test_collectAndRemoveAssets_empty in Render cache 7.2

@covers ::collectAndRemoveAssets()

File

tests/src/Cache/RenderStackTest.php, line 430
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_collectAndRemoveAssets_empty() {
  $render = array(
    'child_1' => array(
      '#markup' => 'foo',
    ),
  );
  $render_result = $render;
  $this
    ->assertEmpty($this->renderStack
    ->collectAndRemoveAssets($render), 'Collected assets match for empty case.');
  $this
    ->assertEquals($render_result, $render, 'Render is unchanged for empty case.');
}