function LibraryDiscoveryTest::testGetLibraryByName

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibraryByName()
  2. 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::testGetLibraryByName()
  3. 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 82

Class

LibraryDiscoveryTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery @group Asset

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.