You are here

public function LibraryDependencyResolverTest::testGetLibrariesWithDependencies in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetLibrariesWithDependencies()
  2. 10 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetLibrariesWithDependencies()

@covers ::getLibrariesWithDependencies

@dataProvider providerTestGetLibrariesWithDependencies

File

core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php, line 115

Class

LibraryDependencyResolverTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDependencyResolver @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

public function testGetLibrariesWithDependencies(array $libraries, array $expected) {
  $this
    ->assertEquals($expected, $this->libraryDependencyResolver
    ->getLibrariesWithDependencies($libraries));
}