Same name in other branches
- 6.0.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testNoMinifier()
- 8.x-3.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testNoMinifier()
- 8.x-4.x advagg_css_minify/tests/src/Kernel/Asset/CssMinifierUnitTest.php \Drupal\Tests\advagg_css_minify\Kernel\Asset\CssMinifierUnitTest::testNoMinifier()
Tests running the minifier with the minifier disabled.
Fichier
-
advagg_css_minify/
tests/ src/ Kernel/ Asset/ CssMinifierUnitTest.php, line 41
Classe
- CssMinifierUnitTest
- Tests the CSS asset minifier.
Namespace
Drupal\Tests\advagg_css_minify\Kernel\AssetCode
public function testNoMinifier() {
$this->config('advagg_css_minify.settings')
->set('minifier', 0)
->save();
$file = dirname(__FILE__) . '/css_test_files/css_input_without_import.css';
$contents = file_get_contents($file);
$this->assertSame($contents, $this->optimizer
->optimize($contents, [], []));
}