You are here

protected function ModuleInstallUninstallWebTest::testInstallationAndUninstallation in Flysystem 7

Same name and namespace in other branches
  1. 8 src/Tests/ModuleInstallUninstallWebTest.php \Drupal\flysystem\Tests\ModuleInstallUninstallWebTest::testInstallationAndUninstallation()

Tests installation and uninstallation.

File

src/Tests/ModuleInstallUninstallWebTest.php, line 30
Contains \Drupal\flysystem\Tests\ModuleInstallUninstallWebTest.

Class

ModuleInstallUninstallWebTest
Tests module installation and uninstallation.

Namespace

Drupal\flysystem\Tests

Code

protected function testInstallationAndUninstallation() {
  $this
    ->assertTrue(module_exists('flysystem'));
  module_disable(array(
    'flysystem',
  ));
  $this
    ->assertFalse(module_exists('flysystem'));
  $this
    ->assertTrue(drupal_uninstall_modules(array(
    'flysystem',
  )));
}