Same name in other branches
- 5.0.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::providerTestMinification()
- 6.0.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::providerTestMinification()
- 8.x-3.x advagg_js_minify/tests/src/Kernel/Asset/JsMinifierUnitTest.php \Drupal\Tests\advagg_js_minify\Kernel\Asset\JsMinifierUnitTest::providerTestMinification()
Provides data for the JS asset optimize test.
@returns array An array of test data.
Voir aussi
\Drupal\Core\Asset\JsOptimizer::optimize()
Fichier
-
advagg_js_minify/
tests/ src/ Kernel/ Asset/ JsMinifierUnitTest.php, line 107
Classe
- JsMinifierUnitTest
- Tests the JS asset minifier.
Namespace
Drupal\Tests\advagg_js_minify\Kernel\AssetCode
public function providerTestMinification() {
$path = dirname(__FILE__) . '/js_test_files/';
return [
[
[
'data' => $path . 'drupal.js',
],
file_get_contents($path . 'drupal.js'),
],
[
[
'data' => $path . 'ajax.js',
],
file_get_contents($path . 'ajax.js'),
],
[
[
'data' => $path . 'ToolbarVisualView.js',
],
file_get_contents($path . 'ToolbarVisualView.js'),
],
];
}