You are here

public function GroupContentPermissionProviderTest::relationDeletePermissionProvider in Group 8

Data provider for testGetRelationDeletePermission().

Return value

array A list of testGetRelationDeletePermission method arguments.

File

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

Class

GroupContentPermissionProviderTest
Tests the default GroupContentEnabler permission_provider handler.

Namespace

Drupal\Tests\group\Unit

Code

public function relationDeletePermissionProvider() {
  $cases = [];
  foreach ($this
    ->getPermissionProviderScenarios() as $scenario) {
    foreach ([
      'any',
      'own',
    ] as $scope) {
      $case = $scenario;
      $case['scope'] = $scope;
      $case['expected'] = "delete {$scope} {$scenario['plugin_id']} content";
      $cases[] = $case;
    }
  }
  return $cases;
}