You are here

protected constant DeveloperAppPermissionTest::PERMISSION_MATRIX in Apigee Edge 8

Provides data set for our permission tests.

File

tests/src/Functional/DeveloperAppPermissionTest.php, line 44

Class

DeveloperAppPermissionTest
Developer app entity permission test.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

protected const PERMISSION_MATRIX = [
  'create developer_app' => [
    'add-form-for-developer',
  ],
  'delete any developer_app' => [
    'delete-form',
    'delete-form-for-developer',
  ],
  'delete own developer_app' => [
    'delete-form',
    'delete-form-for-developer',
  ],
  'update any developer_app' => [
    'edit-form',
    'edit-form-for-developer',
  ],
  'update own developer_app' => [
    'edit-form',
    'edit-form-for-developer',
  ],
  'view any developer_app' => [
    'canonical',
    'canonical-by-developer',
    'api-keys',
  ],
  'view own developer_app' => [
    'canonical',
    'canonical-by-developer',
    'collection-by-developer',
    'api-keys',
  ],
  'analytics any developer_app' => [
    'analytics',
    'analytics-for-developer',
  ],
  'analytics own developer_app' => [
    'analytics',
    'analytics-for-developer',
  ],
  'access developer_app overview' => [
    'collection',
  ],
  'add_api_key own developer_app' => [
    'add-api-key-form',
  ],
  'add_api_key any developer_app' => [
    'add-api-key-form',
  ],
  // We leave this empty because we add entity links to this data set
  // later.
  self::ADMINISTER_PERMISSION => [],
];