function LibraryDiscoveryTest::testGetLibrariesByExtension
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibrariesByExtension()
- 10 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibrariesByExtension()
- 11.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibrariesByExtension()
@covers ::getLibrariesByExtension
File
-
core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDiscoveryTest.php, line 82
Class
- LibraryDiscoveryTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Asset%21LibraryDiscovery.php/class/LibraryDiscovery/8.9.x" title="Discovers available asset libraries in Drupal." class="local">\Drupal\Core\Asset\LibraryDiscovery</a> @group Asset
Namespace
Drupal\Tests\Core\AssetCode
public function testGetLibrariesByExtension() {
$this->libraryDiscovery
->getLibrariesbyExtension('test');
// Verify that subsequent calls don't trigger hook_library_info_alter()
// and hook_js_settings_alter() invocations, nor do they talk to the
// collector again. This ensures that the alterations made by
// hook_library_info_alter() and hook_js_settings_alter() implementations
// are statically cached, as desired.
$this->libraryDiscovery
->getLibraryByName('test', 'test_1');
$this->libraryDiscovery
->getLibrariesbyExtension('test');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.