Same name in other branches
  1. 5.0.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testMinifyYui()
  2. 6.0.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testMinifyYui()
  3. 8.x-3.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testMinifyYui()

Tests minification of a CSS Asset with YUI.

@dataProvider providerTestMinifyYui

Parameters

array $css_asset: A fake asset array with the filepath to pass to the minifier.

string $original: The asset string contents to be minified.

string $expected: The expected result of minification.

File

advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php, line 142

Class

CssMinifierUnitTest
Tests the CSS asset minifier.

Namespace

Drupal\Tests\advagg_css_minify\Kernel\Asset

Code

public function testMinifyYui(array $css_asset, $original, $expected) {
    $this->assertEquals($expected, $this->optimizer
        ->optimize($original, $css_asset, []));
}