You are here

protected function LibraryDiscoveryTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php \Drupal\Tests\Core\Asset\LibraryDiscoveryTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.php, line 63
Contains \Drupal\Tests\Core\Asset\LibraryDiscoveryTest.

Class

LibraryDiscoveryTest
@coversDefaultClass \Drupal\Core\Asset\LibraryDiscovery @group Asset

Namespace

Drupal\Tests\Core\Asset

Code

protected function setUp() {
  parent::setUp();
  $this->cacheTagsInvalidator = $this
    ->getMock('Drupal\\Core\\Cache\\CacheTagsInvalidatorInterface');
  $this->libraryDiscoveryCollector = $this
    ->getMockBuilder('Drupal\\Core\\Asset\\LibraryDiscoveryCollector')
    ->disableOriginalConstructor()
    ->getMock();
  $this->libraryDiscovery = new LibraryDiscovery($this->libraryDiscoveryCollector, $this->cacheTagsInvalidator);
}