function LibraryDiscoveryTest::testGetLibraryByName
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibraryByName()
- 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibraryByName()
- 10 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibraryByName()
Tests getting a library by name.
@covers ::getLibraryByName
File
-
core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDiscoveryTest.php, line 100
Class
- LibraryDiscoveryTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Asset%21LibraryDiscovery.php/class/LibraryDiscovery/11.x" title="Discovers available asset libraries in Drupal." class="local">\Drupal\Core\Asset\LibraryDiscovery</a> @group Asset
Namespace
Drupal\Tests\Core\AssetCode
public function testGetLibraryByName() : void {
$this->assertSame($this->libraryData['test_1'], $this->libraryDiscovery
->getLibraryByName('test', 'test_1'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.