protected function EasyEmailTestBase::createHtmlTextFormat in Easy Email 2.0.x
Same name and namespace in other branches
- 8 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 75
Class
- EasyEmailTestBase
- Class EasyEmailTestBase
Namespace
Drupal\Tests\easy_email\FunctionalCode
protected function createHtmlTextFormat() {
$edit = [
'format' => 'html',
'name' => 'HTML',
];
$this
->drupalGet('admin/config/content/formats/add');
$this
->submitForm($edit, t('Save configuration'));
filter_formats_reset();
$this->htmlFormat = FilterFormat::load($edit['format']);
}