EmailBodyFormTest.php in Mass Contact 8
Namespace
Drupal\mass_contact\Tests\FormFile
src/Tests/Form/EmailBodyFormTest.phpView 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
Name | Description |
---|---|
EmailBodyFormTest | Admin settings form test. |