You are here

protected property LibraryDiscoveryTest::$libraryData in Drupal 8

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

Test library data.

Type: array

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php, line 40

Class

LibraryDiscoveryTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

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