class ModuleInstallUninstallWebTest in Flysystem 7
Same name and namespace in other branches
- 8 src/Tests/ModuleInstallUninstallWebTest.php \Drupal\flysystem\Tests\ModuleInstallUninstallWebTest
Tests module installation and uninstallation.
Hierarchy
- class \Drupal\flysystem\Tests\ModuleInstallUninstallWebTest extends \Drupal\flysystem\Tests\DrupalWebTestCase
Expanded class hierarchy of ModuleInstallUninstallWebTest
File
- src/
Tests/ ModuleInstallUninstallWebTest.php, line 13 - Contains \Drupal\flysystem\Tests\ModuleInstallUninstallWebTest.
Namespace
Drupal\flysystem\TestsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ModuleInstallUninstallWebTest:: |
public static | function | ||
ModuleInstallUninstallWebTest:: |
public | function | ||
ModuleInstallUninstallWebTest:: |
protected | function | Tests installation and uninstallation. |