ModuleInstallUninstallWebTest.php in Flysystem 7
File
src/Tests/ModuleInstallUninstallWebTest.php
View source
<?php
namespace Drupal\flysystem\Tests;
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',
));
}
protected function testInstallationAndUninstallation() {
$this
->assertTrue(module_exists('flysystem'));
module_disable(array(
'flysystem',
));
$this
->assertFalse(module_exists('flysystem'));
$this
->assertTrue(drupal_uninstall_modules(array(
'flysystem',
)));
}
}