You are here

class ModuleInstallUninstallWebTest in Flysystem 7

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

Tests module installation and uninstallation.

Hierarchy

Expanded class hierarchy of ModuleInstallUninstallWebTest

File

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

Namespace

Drupal\flysystem\Tests
View source
class ModuleInstallUninstallWebTest extends \DrupalWebTestCase {
  public static function getInfo() {
    return array(
      'name' => 'Install/uninstall',
      'description' => 'Tests that the module installs and uninstalls.',
      'group' => 'Flysystem',
    );
  }
  public function setUp() {
    parent::setUp(array(
      'flysystem',
    ));
  }

  /**
   * Tests installation and uninstallation.
   */
  protected function testInstallationAndUninstallation() {
    $this
      ->assertTrue(module_exists('flysystem'));
    module_disable(array(
      'flysystem',
    ));
    $this
      ->assertFalse(module_exists('flysystem'));
    $this
      ->assertTrue(drupal_uninstall_modules(array(
      'flysystem',
    )));
  }

}

Members