You are here

public function TestRunnerKernel::discoverServiceProviders in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Test/TestRunnerKernel.php \Drupal\Core\Test\TestRunnerKernel::discoverServiceProviders()

Discovers available serviceProviders.

Return value

array The available serviceProviders.

Overrides DrupalKernel::discoverServiceProviders

File

core/lib/Drupal/Core/Test/TestRunnerKernel.php, line 90
Contains \Drupal\Core\Test\TestRunnerKernel.

Class

TestRunnerKernel
Kernel for 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';
}