function ModuleHandlerTest::setUp

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::setUp()
  2. 9 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::setUp()
  3. 8.9.x core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::setUp()

@legacy-covers ::__construct

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php, line 42

Class

ModuleHandlerTest
Tests Drupal\Core\Extension\ModuleHandler.

Namespace

Drupal\Tests\Core\Extension

Code

protected function setUp() : void {
  parent::setUp();
  $this->eventDispatcher = $this->createMock(EventDispatcherInterface::class);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.