class UserAdminSettingsFormTest in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/tests/src/Kernel/UserAdminSettingsFormTest.php \Drupal\Tests\user\Kernel\UserAdminSettingsFormTest
- 9 core/modules/user/tests/src/Kernel/UserAdminSettingsFormTest.php \Drupal\Tests\user\Kernel\UserAdminSettingsFormTest
Configuration object user.mail and user.settings save test.
@group user
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \PHPUnit\Framework\TestCase implements ServiceProviderInterface uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, AssertContentTrait, ConfigTestTrait, ExtensionListTestTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings
- class \Drupal\KernelTests\ConfigFormTestBase
- class \Drupal\Tests\user\Kernel\UserAdminSettingsFormTest
- class \Drupal\KernelTests\ConfigFormTestBase
Expanded class hierarchy of UserAdminSettingsFormTest
File
- core/
modules/ user/ tests/ src/ Kernel/ UserAdminSettingsFormTest.php, line 13
Namespace
Drupal\Tests\user\KernelView source
class UserAdminSettingsFormTest extends ConfigFormTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'user',
'system',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->form = AccountSettingsForm::create($this->container);
$this->values = [
'anonymous' => [
'#value' => $this
->randomString(10),
'#config_name' => 'user.settings',
'#config_key' => 'anonymous',
],
'user_mail_cancel_confirm_body' => [
'#value' => $this
->randomString(),
'#config_name' => 'user.mail',
'#config_key' => 'cancel_confirm.body',
],
'user_mail_cancel_confirm_subject' => [
'#value' => $this
->randomString(20),
'#config_name' => 'user.mail',
'#config_key' => 'cancel_confirm.subject',
],
'register_pending_approval_admin_body' => [
'#value' => $this
->randomString(),
'#config_name' => 'user.mail',
'#config_key' => 'register_pending_approval_admin.body',
],
'register_pending_approval_admin_subject' => [
'#value' => $this
->randomString(20),
'#config_name' => 'user.mail',
'#config_key' => 'register_pending_approval_admin.subject',
],
];
}
}