You are here

function JsOptimizerUnitTest::testClean in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 79
Contains \Drupal\Tests\Core\Asset\JsOptimizerUnitTest.

Class

JsOptimizerUnitTest
Tests the JS asset optimizer.

Namespace

Drupal\Tests\Core\Asset

Code

function testClean($js_asset, $expected) {
  $this
    ->assertEquals($expected, $this->optimizer
    ->clean($js_asset));
}