function UninstallKernelTest::setUp

Same name in other branches
  1. 8.9.x core/modules/system/tests/src/Kernel/Installer/UninstallKernelTest.php \Drupal\Tests\system\Kernel\Installer\UninstallKernelTest::setUp()
  2. 10 core/modules/system/tests/src/Kernel/Installer/UninstallKernelTest.php \Drupal\Tests\system\Kernel\Installer\UninstallKernelTest::setUp()
  3. 11.x core/modules/system/tests/src/Kernel/Installer/UninstallKernelTest.php \Drupal\Tests\system\Kernel\Installer\UninstallKernelTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Installer/UninstallKernelTest.php, line 32

Class

UninstallKernelTest
Tests the uninstallation of modules.

Namespace

Drupal\Tests\system\Kernel\Installer

Code

protected function setUp() : void {
    parent::setUp();
    $this->installSchema('user', [
        'users_data',
    ]);
    $this->installEntitySchema('media');
    $this->installEntitySchema('file');
    $this->installConfig([
        'media',
    ]);
}

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