You are here

public function FilterFormTest::testFilterForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::testFilterForm()
  2. 10 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::testFilterForm()

Tests various different configurations of the 'text_format' element.

File

core/modules/filter/tests/src/Functional/FilterFormTest.php, line 71

Class

FilterFormTest
Tests form elements with associated text formats.

Namespace

Drupal\Tests\filter\Functional

Code

public function testFilterForm() {
  $this
    ->doFilterFormTestAsAdmin();
  $this
    ->doFilterFormTestAsNonAdmin();

  // Ensure that enabling modules which provide filter plugins behaves
  // correctly.
  // @see https://www.drupal.org/node/2387983
  \Drupal::service('module_installer')
    ->install([
    'filter_test_plugin',
  ]);
}