Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / user / tests / src / Kernel / UserAdminSettingsFormTest.php
1 <?php
2
3 namespace Drupal\Tests\user\Kernel;
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 }