You are here

public function CKEditorIntegrationTest::previewAccessProvider in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php \Drupal\Tests\media\FunctionalJavascript\CKEditorIntegrationTest::previewAccessProvider()

Data provider for ::testEmbedPreviewAccess.

File

core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php, line 1082

Class

CKEditorIntegrationTest
@coversDefaultClass \Drupal\media\Plugin\CKEditorPlugin\DrupalMedia @group media

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

public function previewAccessProvider() {
  return [
    'media_embed filter enabled' => [
      TRUE,
      TRUE,
    ],
    'media_embed filter disabled' => [
      FALSE,
      TRUE,
    ],
    'media_embed filter enabled, user not allowed to use text format' => [
      TRUE,
      FALSE,
    ],
  ];
}