function PasswordConfirmWidgetTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/user/tests/src/FunctionalJavascript/PasswordConfirmWidgetTest.php, line 38

Class

PasswordConfirmWidgetTest
Tests the JS components added to the PasswordConfirm render element.

Namespace

Drupal\Tests\user\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $this->assert = $this->assertSession();
    // Create a user.
    $this->testUser = $this->createUser();
    $this->drupalLogin($this->testUser);
}

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