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