You are here

public function GroupPermissionTest::groupPermissionProvider in Organic groups 8

Data provider; Return permissions.

Return value

array An array of test data, each data set consisting of an associative array of permission values, keyed by property name.

File

tests/src/Unit/GroupPermissionTest.php, line 283

Class

GroupPermissionTest
Group permissions tests.

Namespace

Drupal\Tests\og\Unit

Code

public function groupPermissionProvider() {
  return [
    [
      [
        'name' => 'edit own article content',
        'title' => $this
          ->t('Article: Edit own content'),
        'description' => $this
          ->t('Allows to update own article content'),
        'default roles' => [
          OgRoleInterface::ADMINISTRATOR,
        ],
        'restrict access' => FALSE,
        'roles' => [
          OgRoleInterface::ADMINISTRATOR,
        ],
      ],
    ],
  ];
}