function UserAnonymousActivateTest::setUp

Same name in other branches
  1. 10 core/modules/user/tests/src/Kernel/UserAnonymousActivateTest.php \Drupal\Tests\user\Kernel\UserAnonymousActivateTest::setUp()

Overrides KernelTestBase::setUp

File

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

Class

UserAnonymousActivateTest
Tests unblocking the anonymous user account.

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.