protected function EasyEmailTestBase::createHtmlTextFormat in Easy Email 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/EasyEmailTestBase.php \Drupal\Tests\easy_email\Functional\EasyEmailTestBase::createHtmlTextFormat()
1 call to EasyEmailTestBase::createHtmlTextFormat()
- EasyEmailTestBase::setUp in tests/
src/ Functional/ EasyEmailTestBase.php
File
- tests/
src/ Functional/ EasyEmailTestBase.php, line 77
Class
- EasyEmailTestBase
- Class EasyEmailTestBase
Namespace
Drupal\Tests\easy_email\FunctionalCode
protected function createHtmlTextFormat() {
$edit = [
'format' => 'html',
'name' => 'HTML',
];
$this
->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));
filter_formats_reset();
$this->htmlFormat = FilterFormat::load($edit['format']);
}