You are here

protected function LibraryDiscoveryCollectorTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::setUp()
  2. 9 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php, line 89

Class

LibraryDiscoveryCollectorTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscoveryCollector @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

protected function setUp() : void {
  $this->cache = $this
    ->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
  $this->lock = $this
    ->createMock('Drupal\\Core\\Lock\\LockBackendInterface');
  $this->themeManager = $this
    ->getMockBuilder('Drupal\\Core\\Theme\\ThemeManagerInterface')
    ->disableOriginalConstructor()
    ->getMock();
  $this->libraryDiscoveryParser = $this
    ->getMockBuilder('Drupal\\Core\\Asset\\LibraryDiscoveryParser')
    ->disableOriginalConstructor()
    ->getMock();
}