public function JsOptimizerUnitTest::testClean in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php \Drupal\Tests\Core\Asset\JsOptimizerUnitTest::testClean()
- 9 core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php \Drupal\Tests\Core\Asset\JsOptimizerUnitTest::testClean()
Tests cleaning of a JS asset group containing 'type' => 'file'.
@dataProvider providerTestClean
File
- core/
tests/ Drupal/ Tests/ Core/ Asset/ JsOptimizerUnitTest.php, line 74
Class
- JsOptimizerUnitTest
- Tests the JS asset optimizer.
Namespace
Drupal\Tests\Core\AssetCode
public function testClean($js_asset, $expected) {
$this
->assertEquals($expected, $this->optimizer
->clean($js_asset));
}