Unavailable module: 'my_module'. If this module needs to be downloaded separately, annotate the test class with '@requires module my_module'.
And If I add:
protected function setUpFilesystem() {
parent::setUpFilesystem();
$this->setSetting('test_parent_site', 'sites/my_site');
}
error is gone.
But this is just a workaround.
I guess this error appears only in kernel tests, because for functional test in FunctionalTestSetupTrait.php there is:
$settings['settings']['test_parent_site'] = (object) [
'value' => $this->originalSite,
'required' => TRUE,
];
I guess such test_parent_site setting definition should be for kernel test too.
Comments
Comment #2
quietone commentedSimpletest module is no longer in core, moving to testing component.
Comment #3
longwaveI think this is a duplicate of #3078743: PHPUnit testing within multisite setups
Comment #4
cilefen commentedIt seems so.
Comment #5
super_romeo commentedI confirm.