function MediaTest::previewAccessProvider

Same name in this branch
  1. 9 core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php \Drupal\Tests\ckeditor\FunctionalJavascript\MediaTest::previewAccessProvider()

Data provider for ::testEmbedPreviewAccess.

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php, line 1161

Class

MediaTest
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Media @group ckeditor5 @internal

Namespace

Drupal\Tests\ckeditor5\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,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.