You are here

public function ButtonAdminTest::embedButtonAdminProvider in Entity Embed 8

Data provider for ::testEmbedButtonAdmin().

File

tests/src/FunctionalJavascript/ButtonAdminTest.php, line 118

Class

ButtonAdminTest
Tests the creation and configuration of entity embed buttons.

Namespace

Drupal\Tests\entity_embed\FunctionalJavascript

Code

public function embedButtonAdminProvider() {
  return [
    'article nodes embedded using teaser view mode' => [
      'node',
      'article',
      'view_mode:node.teaser',
    ],
    'users embedded using full view mode' => [
      'user',
      NULL,
      'view_mode:user.full',
    ],
    'image media items embedded using thumb view mode' => [
      'media',
      'image',
      'view_mode:media.thumb',
    ],
    'files embedded using plain URL' => [
      'file',
      NULL,
      'file:file_url_plain',
    ],
  ];
}