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

tests/src/Kernel/SettingsFormTest.php, line 23

Class

SettingsFormTest
Test the settings form.

Namespace

Drupal\Tests\crm_core\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->container
    ->get('theme_installer')
    ->install([
    'claro',
  ]);
  $this->form = SettingsForm::create($this->container);
  $this->values = [
    'crm_core_custom_theme' => [
      '#value' => 'claro',
      '#config_name' => 'crm_core.settings',
      '#config_key' => 'custom_theme',
    ],
  ];
}