You are here

public function EntityPermissionsFormTest::providerTestPermissionsByProvider in Drupal 10

Provides data for the testPermissionsByProvider method.

Return value

array

File

core/modules/user/tests/src/Unit/Form/EntityPermissionsFormTest.php, line 101

Class

EntityPermissionsFormTest
Tests the permissions administration form for a bundle.

Namespace

Drupal\Tests\user\Unit\Form

Code

public function providerTestPermissionsByProvider() {
  return [
    'direct dependency' => [
      'node.type.article',
      TRUE,
    ],
    'indirect dependency' => [
      'core.entity_view_display.node.article.full',
      TRUE,
    ],
    'not a dependency' => [
      'node.type.page',
      FALSE,
    ],
  ];
}