You are here

public function UninstallTest::testReinstall in Node Option Premium 8

Tests that the module can be reinstalled.

File

tests/src/Functional/UninstallTest.php, line 88

Class

UninstallTest
Tests module uninstallation.

Namespace

Drupal\Tests\nopremium\Functional

Code

public function testReinstall() {
  $this->moduleInstaller
    ->uninstall([
    'nopremium',
  ]);
  $this
    ->assertTrue($this->moduleInstaller
    ->install([
    'nopremium',
  ]));
  $this
    ->reloadServices();
  $this
    ->assertTrue($this->moduleHandler
    ->moduleExists('nopremium'));
}