Same name in other branches
- 6.0.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::testClean()
- 8.x-3.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::testClean()
- 8.x-4.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::testClean()
Tests cleaning of a JavaScript asset.
@dataProvider providerTestClean
Paramètres
string $original: The unprocessed asset string.
string $expected: The expected cleaned asset string.
Fichier
-
advagg_js_minify/
tests/ src/ Kernel/ Asset/ JsMinifierUnitTest.php, line 95
Classe
- JsMinifierUnitTest
- Tests the JS asset minifier.
Namespace
Drupal\Tests\advagg_js_minify\Kernel\AssetCode
public function testClean($original, $expected) {
$this->assertEquals($expected, $this->optimizer
->clean($original, []));
}