You are here

public function UiDialogTest::testFilterHtmlDisable in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiDialogTest.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiDialogTest::testFilterHtmlDisable()

Test the appearance of every EIA attributes when no filters enabled.

File

tests/src/FunctionalJavascript/UiDialogTest.php, line 153

Class

UiDialogTest
Tests event info pages and links.

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

public function testFilterHtmlDisable() {

  // Disable the filter_html filter: allow *all *tags.
  $this->editorFilterFormat
    ->setFilterConfig('filter_html', [
    'status' => 0,
  ]);
  $this->editorFilterFormat
    ->save();
  $this
    ->testImageBaseDialogWorks();
  $this
    ->assertElementPresent('.ui-dialog .form-item-attributes-title');
  $this
    ->assertElementPresent('.ui-dialog .form-item-attributes-class');
  $this
    ->assertElementPresent('.ui-dialog .form-item-attributes-id');
}