function CssCollectionRendererUnitTest::testRender in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 470 - Contains \Drupal\Tests\Core\Asset\CssCollectionRendererUnitTest.
Class
- CssCollectionRendererUnitTest
- Tests the CSS asset collection renderer.
Namespace
Drupal\Tests\Core\AssetCode
function testRender(array $css_assets, array $render_elements) {
$this->state
->expects($this
->once())
->method('get')
->with('system.css_js_query_string')
->will($this
->returnValue(NULL));
$this
->assertSame($render_elements, $this->renderer
->render($css_assets));
}