function EntityPermissionsFormTest::providerTestPermissionsByProvider
Same name in other branches
- 10 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 101
Class
- EntityPermissionsFormTest
- Tests the permissions administration form for a bundle.
Namespace
Drupal\Tests\user\Unit\FormCode
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,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.