protected function RptTestGenerated::setUp in Registration Password Token 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ RptTestGenerated.php, line 26
Class
- RptTestGenerated
- Test RPT fully.
Namespace
Drupal\Tests\rpt\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
\Drupal::service('router.builder')
->rebuild();
/** @var \Drupal\Core\Config\ConfigFactoryInterface $configFactory */
$configFactory = \Drupal::service('config.factory');
$configFactory
->getEditable('user.settings')
->set('verify_mail', FALSE)
->save();
$configFactory
->getEditable('rpt.settings')
->set('password_generate', TRUE)
->save();
}