You are here

public function GroupContentPermissionProviderTest::relationCreatePermissionProvider in Group 8

Data provider for testGetRelationCreatePermission().

Return value

array A list of testGetRelationCreatePermission method arguments.

File

tests/src/Unit/GroupContentPermissionProviderTest.php, line 221

Class

GroupContentPermissionProviderTest
Tests the default GroupContentEnabler permission_provider handler.

Namespace

Drupal\Tests\group\Unit

Code

public function relationCreatePermissionProvider() {
  $cases = [];
  foreach ($this
    ->getPermissionProviderScenarios() as $scenario) {
    $case = $scenario;
    $case['expected'] = "create {$scenario['plugin_id']} content";
    $cases[] = $case;
  }
  return $cases;
}