function UserNameValidatorTest::setUp
Same name in other branches
- 10 core/modules/user/tests/src/Kernel/UserNameValidatorTest.php \Drupal\Tests\user\Kernel\UserNameValidatorTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ user/ tests/ src/ Kernel/ UserNameValidatorTest.php, line 31
Class
- UserNameValidatorTest
- Verify that user validity checks behave as designed.
Namespace
Drupal\Tests\user\KernelCode
protected function setUp() : void {
parent::setUp();
$this->userValidator = $this->container
->get('user.name_validator');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.