protected function LibraryDependencyResolverTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::setUp()
- 9 core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php \Drupal\Tests\Core\Asset\LibraryDependencyResolverTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDependencyResolverTest.php, line 55
Class
- LibraryDependencyResolverTest
- @coversDefaultClass \Drupal\Core\Asset\LibraryDependencyResolver @group Asset
Namespace
Drupal\Tests\Core\AssetCode
protected function setUp() : void {
$this->libraryDiscovery = $this
->getMockBuilder('Drupal\\Core\\Asset\\LibraryDiscovery')
->disableOriginalConstructor()
->onlyMethods([
'getLibrariesByExtension',
])
->getMock();
$this->libraryDiscovery
->expects($this
->any())
->method('getLibrariesByExtension')
->with('test')
->will($this
->returnValue($this->libraryData));
$this->libraryDependencyResolver = new LibraryDependencyResolver($this->libraryDiscovery);
}