public function LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::testGetMinimalRepresentativeSubsetInvalidInput()
- 9 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 174
Class
- LibraryDependencyResolverTest
- @coversDefaultClass \Drupal\Core\Asset\LibraryDependencyResolver @group Asset
Namespace
Drupal\Tests\Core\AssetCode
public function testGetMinimalRepresentativeSubsetInvalidInput() {
$this
->expectException(\AssertionError::class);
$this
->expectExceptionMessage('$libraries can\'t contain duplicate items.');
$this->libraryDependencyResolver
->getMinimalRepresentativeSubset([
'test/no_deps_a',
'test/no_deps_a',
]);
}