You are here

protected function LibraryDiscoveryCollectorTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 76
Contains \Drupal\Tests\Core\Asset\LibraryDiscoveryCollectorTest.

Class

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

Namespace

Drupal\Tests\Core\Asset

Code

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