public function GroupContentOperationPermissionTest::groupContentOperationPermissionProvider in Organic groups 8
Data provider; Array with group content permissions.
Return value
array An array of test data, each data set consisting of an associative array of permission values, keyed by property name.
File
- tests/
src/ Unit/ GroupContentOperationPermissionTest.php, line 388
Class
- GroupContentOperationPermissionTest
- Tests group content permissions.
Namespace
Drupal\Tests\og\UnitCode
public function groupContentOperationPermissionProvider() {
return [
[
[
'name' => 'edit own article content',
'title' => $this
->t('Article: Edit own content'),
'description' => $this
->t('Allows to update own article content'),
'default roles' => [
OgRoleInterface::ADMINISTRATOR,
],
'restrict access' => FALSE,
'entity type' => 'node',
'bundle' => 'article',
'operation' => 'update',
'owner' => TRUE,
],
],
];
}