You are here

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\Unit

Code

public function mockDispatch($name, Event $event = NULL) {
  $this->dispatchedEvents[] = [
    $name,
    $event,
  ];
}