public function CronEventTest::setUp in Hook Event Dispatcher 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ Cron/ CronEventTest.php, line 30
Class
- CronEventTest
- Class CronEventTest.
Namespace
Drupal\Tests\hook_event_dispatcher\Unit\CronCode
public function setUp() {
$builder = new ContainerBuilder();
$this->manager = new HookEventDispatcherManagerSpy();
$builder
->set('hook_event_dispatcher.manager', $this->manager);
$builder
->compile();
\Drupal::setContainer($builder);
}