function LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput()
- 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput()
- 10 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput()
@covers ::getMinimalRepresentativeSubset
File
-
core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDependencyResolverTest.php, line 188
Class
- LibraryDependencyResolverTest
- @coversDefaultClass \Drupal\Core\Asset\LibraryDependencyResolver @group Asset
Namespace
Drupal\Tests\Core\AssetCode
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.