Commit a0961ff6 authored by catch's avatar catch
Browse files

Issue #2266547 by alexpott, sun: TestKernel is not adding its service provider correctly.

parent 71287c86
......@@ -44,12 +44,10 @@ public function __construct(ClassLoader $class_loader) {
* {@inheritdoc}
public function discoverServiceProviders() {
$providers = 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[] = 'Drupal\Core\Installer\InstallerServiceProvider';
$providers[] = new InstallerServiceProvider();
return $providers;
$this->serviceProviderClasses['app']['Test'] = 'Drupal\Core\Installer\InstallerServiceProvider';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment