public function AbstractFieldSettingsSummaryAlterEventTestCase::setUp in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/field_event_dispatcher/tests/src/Unit/Field/AbstractFieldSettingsSummaryAlterEventTestCase.php \Drupal\Tests\field_event_dispatcher\Unit\Field\AbstractFieldSettingsSummaryAlterEventTestCase::setUp()
Sets up the test.
File
- modules/
field_event_dispatcher/ tests/ src/ Unit/ Field/ AbstractFieldSettingsSummaryAlterEventTestCase.php, line 29
Class
- AbstractFieldSettingsSummaryAlterEventTestCase
- Class AbstractFieldSettingsSummaryAlterEventTestCase.
Namespace
Drupal\Tests\field_event_dispatcher\Unit\FieldCode
public function setUp() : void {
$builder = new ContainerBuilder();
$this->manager = new HookEventDispatcherManagerSpy();
$builder
->set('hook_event_dispatcher.manager', $this->manager);
$builder
->compile();
Drupal::setContainer($builder);
}