Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/user/src/Tests/UserAdminSettingsFormTest.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\user\Tests; | |
4 | |
5 use Drupal\KernelTests\ConfigFormTestBase; | |
6 use Drupal\user\AccountSettingsForm; | |
7 | |
8 /** | |
9 * Configuration object user.mail and user.settings save test. | |
10 * | |
11 * @group user | |
12 */ | |
13 class UserAdminSettingsFormTest extends ConfigFormTestBase { | |
14 | |
15 /** | |
16 * {@inheritdoc} | |
17 */ | |
18 public static $modules = ['user', 'system']; | |
19 | |
20 /** | |
21 * {@inheritdoc} | |
22 */ | |
23 protected function setUp() { | |
24 parent::setUp(); | |
25 | |
26 $this->form = AccountSettingsForm::create($this->container); | |
27 $this->values = [ | |
28 'anonymous' => [ | |
29 '#value' => $this->randomString(10), | |
30 '#config_name' => 'user.settings', | |
31 '#config_key' => 'anonymous', | |
32 ], | |
33 'user_mail_cancel_confirm_body' => [ | |
34 '#value' => $this->randomString(), | |
35 '#config_name' => 'user.mail', | |
36 '#config_key' => 'cancel_confirm.body', | |
37 ], | |
38 'user_mail_cancel_confirm_subject' => [ | |
39 '#value' => $this->randomString(20), | |
40 '#config_name' => 'user.mail', | |
41 '#config_key' => 'cancel_confirm.subject', | |
42 ], | |
43 'register_pending_approval_admin_body' => [ | |
44 '#value' => $this->randomString(), | |
45 '#config_name' => 'user.mail', | |
46 '#config_key' => 'register_pending_approval_admin.body', | |
47 ], | |
48 'register_pending_approval_admin_subject' => [ | |
49 '#value' => $this->randomString(20), | |
50 '#config_name' => 'user.mail', | |
51 '#config_key' => 'register_pending_approval_admin.subject', | |
52 ], | |
53 ]; | |
54 } | |
55 | |
56 } |