function MediaLibraryAccessTest::editorOpenerAccessProvider

Same name in other branches
  1. 9 core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::editorOpenerAccessProvider()
  2. 10 core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::editorOpenerAccessProvider()
  3. 11.x core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::editorOpenerAccessProvider()

Data provider for ::testEditorOpenerAccess.

File

core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php, line 182

Class

MediaLibraryAccessTest
Tests the media library access.

Namespace

Drupal\Tests\media_library\Kernel

Code

public function editorOpenerAccessProvider() {
    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.