public function LibraryDiscoveryTest::testGetLibraryByName in Drupal 8
Same name and namespace in other branches
- 9 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 98
Class
- LibraryDiscoveryTest
- @coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery @group Asset
Namespace
Drupal\Tests\Core\AssetCode
public function testGetLibraryByName() {
$this
->assertSame($this->libraryData['test_1'], $this->libraryDiscovery
->getLibraryByName('test', 'test_1'));
}