You are here

function CssOptimizerUnitTest::testOptimize in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php \Drupal\Tests\Core\Asset\CssOptimizerUnitTest::testOptimize()

Tests optimizing a CSS asset group containing 'type' => 'file'.

@dataProvider providerTestOptimize

File

core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php, line 228
Contains \Drupal\Tests\Core\Asset\CssOptimizerUnitTest.

Class

CssOptimizerUnitTest
Tests the CSS asset optimizer.

Namespace

Drupal\Tests\Core\Asset

Code

function testOptimize($css_asset, $expected) {
  $this
    ->assertEquals($expected, $this->optimizer
    ->optimize($css_asset), 'Group of file CSS assets optimized correctly.');
}