Commit 5a581ddc authored by alexpott's avatar alexpott

Issue #2372745 by Arla: KernelTestBase ignores extensions in site-specific directories

parent 63c70c58
......@@ -158,6 +158,12 @@ protected function setUp() {
$this->kernel->setSitePath(DrupalKernel::findSitePath($request));
$this->kernel->boot();
// Save the original site directory path, so that extensions in the
// site-specific directory can still be discovered in the test site
// environment.
// @see \Drupal\Core\Extension\ExtensionDiscovery::scan()
$settings['test_parent_site'] = $this->originalSite;
// Restore and merge settings.
// DrupalKernel::boot() initializes new Settings, and the containerBuild()
// method sets additional settings.
......
......@@ -813,7 +813,7 @@ protected function setUp() {
// Save the original site directory path, so that extensions in the
// site-specific directory can still be discovered in the test site
// environment.
// @see \Drupal\Core\SystemListing::scan()
// @see \Drupal\Core\Extension\ExtensionDiscovery::scan()
$settings['settings']['test_parent_site'] = (object) array(
'value' => $this->originalSite,
'required' => TRUE,
......
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