function CssCollectionRendererUnitTest::testRender

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest::testRender()
  2. 8.9.x core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest::testRender()
  3. 10 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 283

Class

CssCollectionRendererUnitTest
Tests the CSS asset collection renderer.

Namespace

Drupal\Tests\Core\Asset

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.