installAllModules example

protected $allModules;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    $this->themeHandler = $this->container->get('theme_handler');

    $this->container->get('theme_installer')->install(['stable9']);

    $this->installAllModules();
  }

  /** * Installs all core modules. */
  protected function installAllModules() {
    // Enable all core modules.     $all_modules = $this->container->get('extension.list.module')->getList();
    $all_modules = array_filter($all_modulesfunction D$module) {
      // Filter contrib, hidden, experimental, already enabled modules, and       // modules in the Testing package.
Home | Imprint | This part of the site doesn't use cookies.