function DeprecatedAssetsTest::deprecatedLibrariesProvider

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Asset/DeprecatedAssetsTest.php \Drupal\KernelTests\Core\Asset\DeprecatedAssetsTest::deprecatedLibrariesProvider()
  2. 10 core/tests/Drupal/KernelTests/Core/Asset/DeprecatedAssetsTest.php \Drupal\KernelTests\Core\Asset\DeprecatedAssetsTest::deprecatedLibrariesProvider()

The data provider for testDeprecatedLibraries.

Returns an array in the form of.


 [
   (string) description => [
     (string) extension - The name of the extension that registered a library, usually 'core'
     (string) name - The name of a registered library
     (string) deprecation_suffix - The part of the deprecation message after the extension/name
     (string) expected_hashed_library_definition -  The expected MD5 hash of the library
   ]
 ]

Return value

array See description above.

File

core/tests/Drupal/KernelTests/Core/Asset/DeprecatedAssetsTest.php, line 66

Class

DeprecatedAssetsTest
Checks the status and definition contents of deprecated libraries.

Namespace

Drupal\KernelTests\Core\Asset

Code

public static function deprecatedLibrariesProvider() : array {
  return [
    'Tests deprecation of library example' => [
      'core',
      'example',
      'message',
      'hash',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.