function LibraryDiscoveryTest::testGetLibraryByName

Tests getting a library by name.

@legacy-covers ::getLibraryByName

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php, line 86

Class

LibraryDiscoveryTest
Tests Drupal\Core\Asset\LibraryDiscovery.

Namespace

Drupal\Tests\Core\Asset

Code

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.