You are here

protected function SettingsFormTest::getFormValues in Auto Purge Users 8.3

Returns the array with the form values to submit.

Return value

array The array to use with formSubmit function.

1 call to SettingsFormTest::getFormValues()
SettingsFormTest::testConfigForm in tests/src/Functional/SettingsFormTest.php

File

tests/src/Functional/SettingsFormTest.php, line 102

Class

SettingsFormTest
Tests submission of Purge Users form.

Namespace

Drupal\Tests\purge_users\Functional

Code

protected function getFormValues() : array {
  $edit['purge_excluded_users_roles[administrator]'] = 'administrator';
  $edit['purge_included_users_roles[authenticated]'] = 'authenticated';
  $edit['purge_user_cancel_method'] = 'user_cancel_block';
  $edit['user_never_lastlogin_value'] = '20';
  $edit['user_never_lastlogin_period'] = 'days';
  $edit['enabled_never_loggedin_users'] = TRUE;
  $edit['enabled_inactive_users'] = FALSE;
  $edit['enabled_loggedin_users'] = FALSE;
  $edit['enabled_blocked_users'] = FALSE;
  $edit['send_email_notification'] = FALSE;
  return $edit;
}