public function JsMinifierUnitTest::testClean in Advanced CSS/JS Aggregation 8.3
Same name and namespace in other branches
- 8.4 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
Parameters
string $original: The unprocessed asset string.
string $expected: The expected cleaned asset string.
File
- advagg_js_minify/
tests/ src/ Kernel/ Asset/ JsMinifierUnitTest.php, line 95
Class
- 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, []));
}