[ticket/12350] Instantiate Mock Dispatcher for modules_test

PHPBB3-12350
Merge pull request #2239 from k-fish/ticket/12350

[ticket/12350] Instantiate Mock Dispatcher for modules_test

* k-fish/ticket/12350:
  [ticket/12350] Instantiate Mock Dispatcher for modules_test