function ExtensionUninstallCommandTest::setUp

File

core/tests/Drupal/KernelTests/Core/Extension/Command/ExtensionUninstallCommandTest.php, line 32

Class

ExtensionUninstallCommandTest
Tests the 'ex:uninstall' command.

Namespace

Drupal\KernelTests\Core\Extension\Command

Code

protected function setUp() : void {
  parent::setUp();
  // hook_modules_uninstalled() in the User module cleans up users_data.
  $this->installSchema('user', [
    'users_data',
  ]);
  // console_test depends on autowire_test, and test_subtheme on
  // test_base_theme, so uninstalling the dependency pulls in the dependent.
  $this->container
    ->get('module_installer')
    ->install([
    'console_test',
  ]);
  $this->container
    ->get('theme_installer')
    ->install([
    'test_subtheme',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.