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