You are here

public function WorkspaceAccessTest::operationCases in Workspace 8.2

Test cases for testWorkspaceAccess().

Return value

array An array of operations and permissions to test with.

File

tests/src/Kernel/WorkspaceAccessTest.php, line 49

Class

WorkspaceAccessTest
Tests access on workspaces.

Namespace

Drupal\Tests\workspace\Kernel

Code

public function operationCases() {
  return [
    [
      'create',
      'create workspace',
    ],
    [
      'view',
      'view any workspace',
    ],
    [
      'view',
      'view own workspace',
    ],
    [
      'update',
      'edit any workspace',
    ],
    [
      'update',
      'edit own workspace',
    ],
    [
      'delete',
      'delete any workspace',
    ],
    [
      'delete',
      'delete own workspace',
    ],
  ];
}