public function EntityOperationsTest::setUp in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/tests/src/Unit/Entity/EntityOperationsTest.php \Drupal\Tests\core_event_dispatcher\Unit\Entity\EntityOperationsTest::setUp()
File
- modules/
core_event_dispatcher/ tests/ src/ Unit/ Entity/ EntityOperationsTest.php, line 33
Class
- EntityOperationsTest
- Class EntityOperationsTest.
Namespace
Drupal\Tests\core_event_dispatcher\Unit\EntityCode
public function setUp() : void {
$builder = new ContainerBuilder();
$this->manager = new HookEventDispatcherManagerSpy();
$builder
->set('hook_event_dispatcher.manager', $this->manager);
$builder
->compile();
Drupal::setContainer($builder);
}