You are here

public function MediaLibraryAccessTest::editorOpenerAccessProvider in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAccessTest::editorOpenerAccessProvider()
  2. 9 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 184

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