You are here

protected function SettingsFormTest::setUp in CRM Core 8.3

Same name in this branch
  1. 8.3 tests/src/Kernel/SettingsFormTest.php \Drupal\Tests\crm_core\Kernel\SettingsFormTest::setUp()
  2. 8.3 modules/crm_core_user_sync/tests/src/Kernel/SettingsFormTest.php \Drupal\Tests\crm_core_user_sync\Kernel\SettingsFormTest::setUp()

Overrides KernelTestBase::setUp

File

modules/crm_core_user_sync/tests/src/Kernel/SettingsFormTest.php, line 29

Class

SettingsFormTest
Test the settings form.

Namespace

Drupal\Tests\crm_core_user_sync\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig('crm_core_user_sync');
  $this->form = SettingsForm::create($this->container);
  $this->values = [
    'auto_sync_user_create' => [
      '#value' => TRUE,
      '#config_name' => 'crm_core_user_sync.settings',
      '#config_key' => 'auto_sync_user_create',
    ],
    'auto_sync_user_relate' => [
      '#value' => TRUE,
      '#config_name' => 'crm_core_user_sync.settings',
      '#config_key' => 'auto_sync_user_relate',
    ],
    'contact_load' => [
      '#value' => TRUE,
      '#config_name' => 'crm_core_user_sync.settings',
      '#config_key' => 'contact_load',
    ],
    'contact_show' => [
      '#value' => TRUE,
      '#config_name' => 'crm_core_user_sync.settings',
      '#config_key' => 'contact_show',
    ],
  ];
}