function JsOptimizerUnitTest::testOptimize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Asset/JsOptimizerUnitTest.php \Drupal\Tests\Core\Asset\JsOptimizerUnitTest::testOptimize()
Tests cleaning of a JS asset group containing 'type' => 'file'.
@dataProvider providerTestOptimize
File
- core/
tests/ Drupal/ Tests/ Core/ Asset/ JsOptimizerUnitTest.php, line 127 - Contains \Drupal\Tests\Core\Asset\JsOptimizerUnitTest.
Class
- JsOptimizerUnitTest
- Tests the JS asset optimizer.
Namespace
Drupal\Tests\Core\AssetCode
function testOptimize($js_asset, $expected) {
$this
->assertEquals($expected, $this->optimizer
->optimize($js_asset));
}