function UserInstallTest::setUp

Same name and namespace 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. 10 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 26

Class

UserInstallTest
Tests <a href="/api/drupal/core%21modules%21user%21user.install/function/user_install/11.x" title="Implements hook_install()." class="local">user_install</a>().

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.