Skip to content
Snippets Groups Projects
Commit 5a581ddc authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 63c70c58
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment