function LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput

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

Tests get minimal representative subset invalid input.

File

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

Class

LibraryDependencyResolverTest
Tests Drupal\Core\Asset\LibraryDependencyResolver.

Namespace

Drupal\Tests\Core\Asset

Code

public function testGetMinimalRepresentativeSubsetInvalidInput() : void {
  $this->expectException(\AssertionError::class);
  $this->expectExceptionMessage('$libraries can\'t contain duplicate items.');
  $this->libraryDependencyResolver
    ->getMinimalRepresentativeSubset([
    'test/no_deps_a',
    'test/no_deps_a',
  ]);
}

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