$this->
assertFalse(\Drupal::
moduleHandler()->
moduleExists('automated_cron'
), 'Automated cron module uninstalled during import.'
);
$this->
assertFalse(\Drupal::
moduleHandler()->
moduleExists('options'
), 'Options module uninstalled during import.'
);
$this->
assertFalse(\Drupal::
moduleHandler()->
moduleExists('text'
), 'Text module uninstalled during import.'
);
// Ensure installations and uninstallation occur as expected.
$installed = \Drupal::
state()->
get('ConfigImportUITest.core.extension.modules_installed',
[]);
$uninstalled = \Drupal::
state()->
get('ConfigImportUITest.core.extension.modules_uninstalled',
[]);
$expected =
['options', 'text', 'ban', 'automated_cron'
];
$this->
assertSame($expected,
$uninstalled, 'Options, Text, Ban and Automated Cron modules uninstalled in the correct order.'
);
$this->
assertEmpty($installed, 'No modules installed during import'
);
$theme_info = \Drupal::
service('theme_handler'
)->
listInfo();
$this->
assertFalse(isset($theme_info['olivero'
]), 'Olivero theme uninstalled during import.'
);
// Verify that the automated_cron.settings configuration object was only
// deleted once during the import process.
$delete_called = \Drupal::
state()->
get('ConfigImportUITest.automated_cron.settings.delete', 0
);
$this->
assertSame(1,
$delete_called, "The automated_cron.settings configuration was deleted once during configuration import."
);
} /**
* Tests concurrent importing of configuration.
*/