public function ConfigUpdateUnitTestBase::mockDispatch in Configuration Update Manager 8
Mocks event dispatch.
For \Symfony\Component\EventDispatcher\EventDispatchInterface::dispatch().
File
- tests/
src/ Unit/ ConfigUpdateUnitTestBase.php, line 346
Class
- ConfigUpdateUnitTestBase
- Base class for unit testing in Config Update Manager.
Namespace
Drupal\Tests\config_update\UnitCode
public function mockDispatch($name, Event $event = NULL) {
$this->dispatchedEvents[] = [
$name,
$event,
];
}