You are here

public function SimpletestTest::testUninstallModule in Drupal 8

Test that we can uninstall the module without mishap.

Upon uninstall, simpletest will clean up after itself. This should neither break the test runner's expectations, nor cause any kind of exception.

Note that this might break run-tests.sh test runs that don't use the --sqlite argument.

File

core/modules/simpletest/tests/src/Functional/SimpletestTest.php, line 35

Class

SimpletestTest
Basic functionality of the Testing module.

Namespace

Drupal\Tests\simpletest\Functional

Code

public function testUninstallModule() {

  /* @var $installer \Drupal\Core\Extension\ModuleInstallerInterface */
  $installer = $this->container
    ->get('module_installer');
  $this
    ->assertTrue($installer
    ->uninstall([
    'simpletest',
  ]));
}