function CKEditorIntegrationTest::previewAccessProvider

Data provider for ::testEmbedPreviewAccess.

File

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

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,
        ],
    ];
}

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