function LibraryDependencyResolverTest::testGetMinimalRepresentativeSubset

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubset()
  2. 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubset()
  3. 10 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubset()

@covers ::getMinimalRepresentativeSubset

@dataProvider providerTestGetMinimalRepresentativeSubset

File

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

Class

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

Namespace

Drupal\Tests\Core\Asset

Code

public function testGetMinimalRepresentativeSubset(array $libraries, array $expected) : void {
    $this->assertEquals($expected, $this->libraryDependencyResolver
        ->getMinimalRepresentativeSubset($libraries));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.