You are here

public function ParagraphsCollectionConfigurationTest::testReinstallingModule in Paragraphs Collection 8

Tests if reinstalling module delete configuration files.

File

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',
  ]);
}