- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
I am trying to run functional tests with imported config. Based on the above, I have tried this:
protected function setUp() : void { parent::setUp(); // Import config, like `drush config:import`. $config_path = DRUPAL_ROOT . '/../config/sync'; $config_source = new FileStorage($config_path); $this->container->set('config.storage.sync', $config_source); $config_factory = $this->container->get('config.factory'); $site_uuid = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'; $config_factory->getEditable('system.site')->set('uuid', $site_uuid)->save(TRUE); $this->configImporter()->import(); }
I get these errors:
Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Cannot change the install profile from testing to standard once Drupal is installed.
Unable to install the standard module since it does not exist.
Unable to uninstall the Testing module because: The Testing module is required.
Unable to uninstall the Testing profile since it is the install profile.Is there some way around this? I just want to simulate running
drush config:import
. - Status changed to Closed: works as designed
4 months ago 7:57am 6 September 2024 - π³πΏNew Zealand quietone
As explained in #14 the core issue queue is not the place for support requests.
The Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our support page β (Community > Support at the top of Drupal.org) and there is Drupal Slack β . You may get better replies in one of those places.
- Status changed to Closed: outdated
4 months ago 8:03am 6 September 2024