You are here

public function ConfigurationUiTest::providerTestValidationWhenAdding in Entity Embed 8

Data provider for testValidationWhenAdding().

File

tests/src/FunctionalJavascript/ConfigurationUiTest.php, line 142

Class

ConfigurationUiTest
Tests text format & text editor configuration UI validation.

Namespace

Drupal\Tests\entity_embed\FunctionalJavascript

Code

public function providerTestValidationWhenAdding() {
  return [
    'Tests validation when drupal-entity not added.' => [
      'filters[filter_html][status]' => TRUE,
      'filters[entity_embed][status]' => TRUE,
      'allowed_html' => 'default',
      'expected_error_message' => 'The Media Entity Embed button requires <drupal-entity> among the allowed HTML tags.',
    ],
  ];
}