function UserInstallTest::setUp

Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/UserInstallTest.php \Drupal\Tests\user\Kernel\UserInstallTest::setUp()
  2. 8.9.x core/modules/user/tests/src/Kernel/UserInstallTest.php \Drupal\Tests\user\Kernel\UserInstallTest::setUp()
  3. 11.x core/modules/user/tests/src/Kernel/UserInstallTest.php \Drupal\Tests\user\Kernel\UserInstallTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/user/tests/src/Kernel/UserInstallTest.php, line 24

Class

UserInstallTest
Tests user_install().

Namespace

Drupal\Tests\user\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->container
        ->get('module_handler')
        ->loadInclude('user', 'install');
    $this->installEntitySchema('user');
    user_install();
}

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