function WorkspaceIntegrationTest::providerTestAllowedEntityCrudInNonDefaultWorkspace

Same name in other branches
  1. 9 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()
  3. 11.x 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 deployment 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,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.