Same name in other branches
  1. 5.0.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::testNoMinifier()
  2. 6.0.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::testNoMinifier()
  3. 8.x-4.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::testNoMinifier()

Tests running the minifier with the minifier disabled.

File

advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php, line 41

Class

JsMinifierUnitTest
Tests the JS asset minifier.

Namespace

Drupal\Tests\advagg_js_minify\Kernel\Asset

Code

public function testNoMinifier() {
    $file = dirname(__FILE__) . '/js_test_files/drupal.js';
    $contents = file_get_contents($file);
    $this->assertSame($contents, $this->optimizer
        ->optimize($contents, [], []));
}