Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/Tests/UserAdminSettingsFormTest.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\user\Tests; | |
4 | |
5 use Drupal\system\Tests\System\SystemConfigFormTestBase; | |
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 SystemConfigFormTestBase { | |
14 | |
15 protected function setUp() { | |
16 parent::setUp(); | |
17 | |
18 $this->form = AccountSettingsForm::create($this->container); | |
19 $this->values = [ | |
20 'anonymous' => [ | |
21 '#value' => $this->randomString(10), | |
22 '#config_name' => 'user.settings', | |
23 '#config_key' => 'anonymous', | |
24 ], | |
25 'user_mail_cancel_confirm_body' => [ | |
26 '#value' => $this->randomString(), | |
27 '#config_name' => 'user.mail', | |
28 '#config_key' => 'cancel_confirm.body', | |
29 ], | |
30 'user_mail_cancel_confirm_subject' => [ | |
31 '#value' => $this->randomString(20), | |
32 '#config_name' => 'user.mail', | |
33 '#config_key' => 'cancel_confirm.subject', | |
34 ], | |
35 'register_pending_approval_admin_body' => [ | |
36 '#value' => $this->randomString(), | |
37 '#config_name' => 'user.mail', | |
38 '#config_key' => 'register_pending_approval_admin.body', | |
39 ], | |
40 'register_pending_approval_admin_subject' => [ | |
41 '#value' => $this->randomString(20), | |
42 '#config_name' => 'user.mail', | |
43 '#config_key' => 'register_pending_approval_admin.subject', | |
44 ], | |
45 ]; | |
46 } | |
47 | |
48 } |