function LibraryDiscoveryTest::testGetLibrariesByExtension
@covers ::getLibrariesByExtension
      
    
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDiscoveryTest.php, line 84  
Class
- LibraryDiscoveryTest
 - @coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery[[api-linebreak]] @group Asset
 
Namespace
Drupal\Tests\Core\AssetCode
public function testGetLibrariesByExtension() : void {
  $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.