public function WorkspaceAccessTest::operationCases in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceAccessTest::operationCases()
Test cases for testWorkspaceAccess().
Return value
array An array of operations and permissions to test with.
File
- core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceAccessTest.php, line 53
Class
- WorkspaceAccessTest
- Tests access on workspaces.
Namespace
Drupal\Tests\workspaces\KernelCode
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',
],
];
}