public function InactiveDeleteTest::setUp in Auto Purge Users 8.3
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ InactiveDeleteTest.php, line 21
Class
- InactiveDeleteTest
- Purge users whose account has not been activated for a specific period.
Namespace
Drupal\Tests\purge_users\FunctionalCode
public function setUp() : void {
parent::setUp();
$this->userStorage = $this->container
->get('entity_type.manager')
->getStorage('user');
// 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)
->save();
}