You are here

public function GroupAccessControlHandlerTest::updateOrDeleteAccessProvider in Group 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/GroupAccessControlHandlerTest.php \Drupal\Tests\group\Kernel\GroupAccessControlHandlerTest::updateOrDeleteAccessProvider()

Data provider for testUpdateOrDeleteAccess().

Return value

array A list of testUpdateOrDeleteAccess method arguments.

File

tests/src/Kernel/GroupAccessControlHandlerTest.php, line 76

Class

GroupAccessControlHandlerTest
Tests the general access behavior of group entities.

Namespace

Drupal\Tests\group\Kernel

Code

public function updateOrDeleteAccessProvider() {
  return [
    'update-access' => [
      'update',
      'edit group',
    ],
    'delete-access' => [
      'delete',
      'delete group',
    ],
  ];
}