You are here

EmailBodyFormTest.php in Mass Contact 8

File

src/Tests/Form/EmailBodyFormTest.php
View source
<?php

namespace Drupal\mass_contact\Tests\Form;

use Drupal\mass_contact\Form\EmailBodyForm;
use Drupal\system\Tests\System\SystemConfigFormTestBase;

/**
 * Admin settings form test.
 *
 * @group mass_contact
 */
class EmailBodyFormTest extends SystemConfigFormTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'mass_contact',
  ];

  /**
   * {@inheritdoc}
   */
  public function setUp() {
    parent::setUp();
    $this->form = EmailBodyForm::create($this->container);
    $values = [];
    $this->values = [];
    foreach ($values as $config_key => $value) {
      $this->values[$config_key] = [
        '#value' => $value,
        '#config_name' => 'mass_contact.settings',
        '#config_key' => $config_key,
      ];
    }
  }

}

Classes

Namesort descending Description
EmailBodyFormTest Admin settings form test.