You are here

public function MessageSubscribeAdminSettingsTest::setUp in Message Subscribe 8

Overrides KernelTestBase::setUp

1 call to MessageSubscribeAdminSettingsTest::setUp()
AdminSettingsTest::setUp in message_subscribe_email/tests/src/Kernel/Form/AdminSettingsTest.php
1 method overrides MessageSubscribeAdminSettingsTest::setUp()
AdminSettingsTest::setUp in message_subscribe_email/tests/src/Kernel/Form/AdminSettingsTest.php

File

tests/src/Kernel/Form/MessageSubscribeAdminSettingsTest.php, line 29

Class

MessageSubscribeAdminSettingsTest
Test the admin settings form.

Namespace

Drupal\Tests\message_subscribe\Kernel\Form

Code

public function setUp() {
  parent::setUp();
  $this->form = MessageSubscribeAdminSettings::create($this->container);
  $this->values = [
    'use_queue' => [
      '#value' => TRUE,
      '#config_name' => 'message_subscribe.settings',
      '#config_key' => 'use_queue',
    ],
    'notify_own_actions' => [
      '#value' => TRUE,
      '#config_name' => 'message_subscribe.settings',
      '#config_key' => 'notify_own_actions',
    ],
    'flag_prefix' => [
      '#value' => 'non_standard',
      '#config_name' => 'message_subscribe.settings',
      '#config_key' => 'flag_prefix',
    ],
    'debug_mode' => [
      '#value' => TRUE,
      '#config_name' => 'message_subscribe.settings',
      '#config_key' => 'debug_mode',
    ],
    'default_notifiers' => [
      '#value' => [
        'email',
        'test',
      ],
      '#config_name' => 'message_subscribe.settings',
      '#config_key' => 'default_notifiers',
    ],
  ];
}