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