You are here

public function WorkspaceIntegrationTest::providerTestAllowedEntityCrudInNonDefaultWorkspace in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceIntegrationTest::providerTestAllowedEntityCrudInNonDefaultWorkspace()
  2. 10 core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php \Drupal\Tests\workspaces\Kernel\WorkspaceIntegrationTest::providerTestAllowedEntityCrudInNonDefaultWorkspace()

Data provider for allowed entity CRUD operations.

File

core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php, line 679

Class

WorkspaceIntegrationTest
Tests a complete publishing scenario across different workspaces.

Namespace

Drupal\Tests\workspaces\Kernel

Code

public function providerTestAllowedEntityCrudInNonDefaultWorkspace() {
  return [
    'workspace-provided non-internal entity type' => [
      'entity_type_id' => 'workspace',
      'allowed' => TRUE,
    ],
    'internal entity type' => [
      'entity_type_id' => 'entity_test_no_label',
      'allowed' => TRUE,
    ],
    'non-internal entity type' => [
      'entity_type_id' => 'entity_test_mulrev',
      'allowed' => FALSE,
    ],
  ];
}