function JsOptimizerUnitTest::testClean
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php \Drupal\Tests\Core\Asset\JsOptimizerUnitTest::testClean()
- 10 core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php \Drupal\Tests\Core\Asset\JsOptimizerUnitTest::testClean()
- 11.x 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));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.