You are here

public function MediaImageTest::providerCkeditorWidgetWorksForAllEmbeds in Entity Embed 8

Data provider for testCkeditorWidgetWorksForAllEmbeds().

File

tests/src/FunctionalJavascript/MediaImageTest.php, line 797

Class

MediaImageTest
Test Media Image specific functionality.

Namespace

Drupal\Tests\entity_embed\FunctionalJavascript

Code

public function providerCkeditorWidgetWorksForAllEmbeds() {
  return [
    'present and active CKEditor button ID' => [
      'data-embed-button="test_media_entity_embed"',
    ],
    'present and inactive CKEditor button ID' => [
      'data-embed-button="user"',
    ],
    'present and nonsensical CKEditor button ID' => [
      'data-embed-button="ceci nest pas une pipe"',
    ],
    'absent' => [
      '',
    ],
  ];
}