You are here

public function CssOptimizerUnitTest::providerTestUrlUpdate in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/Asset/CssOptimizerUnitTest.php \Drupal\Tests\advagg\Kernel\Asset\CssOptimizerUnitTest::providerTestUrlUpdate()

Provides data for the url update test.

File

tests/src/Kernel/Asset/CssOptimizerUnitTest.php, line 48

Class

CssOptimizerUnitTest
Tests the CSS asset optimizer.

Namespace

Drupal\Tests\advagg\Kernel\Asset

Code

public function providerTestUrlUpdate() {
  return [
    [
      'url_test_same_dir.css',
      $this->dir . 'css_test_files/icon-foo.svg',
    ],
    [
      'url_test_child_dir.css',
      $this->dir . 'css_test_files/images/icon-foo.svg',
    ],
    [
      'url_test_parent_dir.css',
      $this->dir . 'css_test_files/../images/icon-foo.svg',
    ],
  ];
}