public function AbstractFormEntityDisplayEditAlterEventSubscriberTestCase::setUp in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/field_event_dispatcher/tests/src/Unit/Field/AbstractFormEntityDisplayEditAlterEventSubscriberTestCase.php \Drupal\Tests\field_event_dispatcher\Unit\Field\AbstractFormEntityDisplayEditAlterEventSubscriberTestCase::setUp()
Sets up the test.
File
- modules/
field_event_dispatcher/ tests/ src/ Unit/ Field/ AbstractFormEntityDisplayEditAlterEventSubscriberTestCase.php, line 31
Class
- AbstractFormEntityDisplayEditAlterEventSubscriberTestCase
- Class AbstractFormEntityDisplayEditAlterEventSubscriberTestCase.
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);
}