public function GroupContentPermissionProviderTest::relationUpdatePermissionProvider in Group 8
Data provider for testGetRelationUpdatePermission().
Return value
array A list of testGetRelationUpdatePermission method arguments.
File
- tests/
src/ Unit/ GroupContentPermissionProviderTest.php, line 137
Class
- GroupContentPermissionProviderTest
- Tests the default GroupContentEnabler permission_provider handler.
Namespace
Drupal\Tests\group\UnitCode
public function relationUpdatePermissionProvider() {
$cases = [];
foreach ($this
->getPermissionProviderScenarios() as $scenario) {
foreach ([
'any',
'own',
] as $scope) {
$case = $scenario;
$case['scope'] = $scope;
$case['expected'] = "update {$scope} {$scenario['plugin_id']} content";
$cases[] = $case;
}
}
return $cases;
}