public function InactiveDeleteNotificationTest::setUp in Auto Purge Users 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ InactiveDeleteNotificationTest.php, line 25
Class
- InactiveDeleteNotificationTest
- Purge users whose account has not been activated for a specific period.
Namespace
Drupal\Tests\purge_users\FunctionalCode
public function setUp() : void {
parent::setUp();
// Set the users for this scenario.
$this
->addAdminUser();
$this
->createTestUser();
// Set the basic configuration and add the specific changes.
$this
->setBasicConfig();
$this
->config('purge_users.settings')
->set('user_inactive_value', '1')
->set('user_inactive_period', 'year')
->set('enabled_inactive_users', TRUE)
->set('purge_user_cancel_method', 'user_cancel_delete')
->set('send_email_notification', TRUE)
->set('send_email_user_before_notification', FALSE)
->save();
// Set storage.
$this->userStorage = $this->container
->get('entity_type.manager')
->getStorage('user');
}