Same name in other branches
- 5.0.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testMinifyYui()
- 6.0.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testMinifyYui()
- 8.x-4.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
Paramètres
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.
Fichier
-
advagg_css_minify/
tests/ src/ Kernel/ Asset/ CssMinifierUnitTest.php, line 142
Classe
- 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, []));
}