You are here

public function PrintableCssIncludeTest::providerTestGetCssIncludePath in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/PrintableCssIncludeTest.php \Drupal\Tests\printable\Unit\PrintableCssIncludeTest::providerTestGetCssIncludePath()

Data provider for testGetCssIncludePath().

File

tests/src/Unit/PrintableCssIncludeTest.php, line 55

Class

PrintableCssIncludeTest
Tests the print format plugin.

Namespace

Drupal\Tests\printable\Unit

Code

public function providerTestGetCssIncludePath() {
  return [
    [
      '[theme:bartik]/css/test.css',
      'core/themes/bartik/css/test.css',
    ],
    [
      '[theme:foobar]/css/test.css',
      '/css/test.css',
    ],
    [
      'foo/bar/css/test.css',
      'foo/bar/css/test.css',
    ],
  ];
}