Problem/Motivation
If a site has a sites/default/testing.services.yml to control the service container of test sites, \Drupal\KernelTests\KernelTestBaseTest::testBootEnvironment() fails on the following assertion:
$this->assertEquals([
'root' => [
'sites' => [
'simpletest' => [
substr($this->databasePrefix, 4) => [
'files' => [
'config' => [
'sync' => [],
],
],
],
],
],
],
], vfsStream::inspect(new vfsStreamStructureVisitor())->getStructure());
That's because there will be a /root/sites/simpletest/services.yml in the virtual filesystem and thus a corresponding entry in the structure array.
Proposed resolution
Comments
Comment #2
tstoecklerComment #11
quietone commentedI tested this on 10,0.x and was able to reproduce the problem. I did
touch sites/default/testing.services.ymland then ran Drupal\KernelTests\KernelTestBaseTest::testBootEnvironment' which failed.Comment #12
quietone commented