protected function HookDiscoveryTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php \Drupal\Tests\Core\Plugin\Discovery\HookDiscoveryTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ HookDiscoveryTest.php, line 32
Class
- HookDiscoveryTest
- @coversDefaultClass \Drupal\Core\Plugin\Discovery\HookDiscovery @group Plugin
Namespace
Drupal\Tests\Core\Plugin\DiscoveryCode
protected function setUp() : void {
$this->moduleHandler = $this
->createMock('Drupal\\Core\\Extension\\ModuleHandlerInterface');
$this->hookDiscovery = new HookDiscovery($this->moduleHandler, 'test_plugin');
}