Tests if reinstalling module delete configuration files.
public function testReinstallingModule() {
\Drupal::service('module_installer')
->install([
'paragraphs_collection',
]);
\Drupal::service('module_installer')
->uninstall([
'paragraphs_collection',
]);
\Drupal::service('module_installer')
->install([
'paragraphs_collection',
]);
}