public function CssMinifierUnitTest::testMinifyYui in Advanced CSS/JS Aggregation 8.4
Same name and namespace in other branches
- 8.3 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\AssetCode
public function testMinifyYui(array $css_asset, $original, $expected) {
$this
->assertEquals($expected, $this->optimizer
->optimize($original, $css_asset, []));
}