function EntityPermissionsFormTest::providerTestPermissionsByProvider
Same name in other branches
- 9 core/modules/user/tests/src/Unit/Form/EntityPermissionsFormTest.php \Drupal\Tests\user\Unit\Form\EntityPermissionsFormTest::providerTestPermissionsByProvider()
- 11.x core/modules/user/tests/src/Unit/Form/EntityPermissionsFormTest.php \Drupal\Tests\user\Unit\Form\EntityPermissionsFormTest::providerTestPermissionsByProvider()
Provides data for the testPermissionsByProvider method.
Return value
array
File
-
core/
modules/ user/ tests/ src/ Unit/ Form/ EntityPermissionsFormTest.php, line 103
Class
- EntityPermissionsFormTest
- Tests the permissions administration form for a bundle.
Namespace
Drupal\Tests\user\Unit\FormCode
public static 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,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.