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. 8.9.x 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 761

Class

WorkspaceIntegrationTest
Tests a complete publishing scenario across different workspaces.

Namespace

Drupal\Tests\workspaces\Kernel

Code

public static 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.