public function ParagraphsCollectionConfigurationTest::testReinstallingModule

Tests if reinstalling module delete configuration files.

File

paragraphs_collection/tests/src/Functional/ParagraphsCollectionConfigurationTest.php, line 18

Class

ParagraphsCollectionConfigurationTest
Tests configuration handling within Paragraphs Collection.

Namespace

Drupal\Tests\paragraphs_collection\Functional

Code

public function testReinstallingModule() {
  \Drupal::service('module_installer')
    ->install([
    'paragraphs_collection',
  ]);
  \Drupal::service('module_installer')
    ->uninstall([
    'paragraphs_collection',
  ]);
  \Drupal::service('module_installer')
    ->install([
    'paragraphs_collection',
  ]);
}