Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TestRunnerKernel.php

function TestRunnerKernel::discoverServiceProviders

Overrides DrupalKernel::discoverServiceProviders

File

core/lib/Drupal/Core/Test/TestRunnerKernel.php, line 97

Class

TestRunnerKernel
Defines a kernel used for running Functional tests and run-tests.sh.

Namespace

Drupal\Core\Test

Code

public function discoverServiceProviders() {
    parent::discoverServiceProviders();
    // The test runner does not require an installed Drupal site to exist.
    // Therefore, its environment is identical to that of the early installer.
    $this->serviceProviderClasses['app']['Test'] = 'Drupal\\Core\\Installer\\InstallerServiceProvider';
    return $this->serviceProviderClasses;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal