public function RegistrationTest::setUp in Legal 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/RegistrationTest.php \Drupal\Tests\legal\Functional\RegistrationTest::setUp()
Overrides LegalTestBase::setUp
File
- tests/
src/ Functional/ RegistrationTest.php, line 17
Class
- RegistrationTest
- Tests a user creating an account.
Namespace
Drupal\Tests\legal\FunctionalCode
public function setUp() {
parent::setUp();
// Don't require email verification.
// Allow registration by site visitors without administrator approval.
$this
->config('user.settings')
->set('verify_mail', FALSE)
->set('register', UserInterface::REGISTER_VISITORS)
->save();
}