Same name in other branches
  1. 6.0.x tests/src/Kernel/Asset/CssOptimizerUnitTest.php \Drupal\Tests\advagg\Kernel\Asset\CssOptimizerUnitTest::providerTestUrlUpdate()
  2. 8.x-3.x tests/src/Kernel/Asset/CssOptimizerUnitTest.php \Drupal\Tests\advagg\Kernel\Asset\CssOptimizerUnitTest::providerTestUrlUpdate()
  3. 8.x-4.x tests/src/Kernel/Asset/CssOptimizerUnitTest.php \Drupal\Tests\advagg\Kernel\Asset\CssOptimizerUnitTest::providerTestUrlUpdate()

Provides data for the url update test.

Fichier

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

Classe

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',
        ],
    ];
}