You are here

protected property LibraryDiscoveryCollectorTest::$libraryData in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::libraryData
  2. 10 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::libraryData

Test library data.

Type: array

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php, line 56

Class

LibraryDiscoveryCollectorTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryCollector @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

protected $libraryData = [
  'test_1' => [
    'js' => [],
    'css' => [],
  ],
  'test_2' => [
    'js' => [],
    'css' => [],
  ],
  'test_3' => [
    'js' => [],
    'css' => [
      'theme' => [
        'foo.css' => [],
      ],
    ],
  ],
  'test_4' => [
    'js' => [],
    'css' => [
      'theme' => [
        'bar.css' => [],
      ],
    ],
    'deprecated' => 'The "%library_id%" asset library is deprecated in drupal:X.0.0 and is removed from drupal:Y.0.0. Use the test_3 library instead. See https://www.example.com',
  ],
];