You are here

public function CssCollectionRendererUnitTest::testRender in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest::testRender()

Tests CSS asset rendering.

@dataProvider providerTestRender

File

core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php, line 274

Class

CssCollectionRendererUnitTest
Tests the CSS asset collection renderer.

Namespace

Drupal\Tests\Core\Asset

Code

public function testRender(array $css_assets, array $render_elements) {
  $this
    ->assertSame($render_elements, $this->renderer
    ->render($css_assets));
}