You are here

protected function RptTestUserInput::setUp in Registration Password Token 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/RptTestUserInput.php, line 26

Class

RptTestUserInput
Test RPT fully.

Namespace

Drupal\Tests\rpt\Kernel

Code

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', FALSE)
    ->save();
}