25 calls to WorkspaceTestTrait::switchToWorkspace()
- EntityReferenceSupportedNewEntitiesConstraintValidatorTest::testNewEntitiesForbiddenInNonDefaultWorkspace in core/
modules/ workspaces/ tests/ src/ Kernel/ EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php - @covers ::validate
- EntityWorkspaceConflictConstraintValidatorTest::testNewEntitiesAllowedInDefaultWorkspace in core/
modules/ workspaces/ tests/ src/ Kernel/ EntityWorkspaceConflictConstraintValidatorTest.php - @covers ::validate
- WorkspaceAssociationTest::testWorkspaceAssociation in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceAssociationTest.php - Tests the revisions tracked by a workspace.
- WorkspaceContentTranslationTest::testTranslations in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceContentTranslationTest.php - Tests translations created in a workspace.
- WorkspaceEntityDeleteTest::testEntityDeletion in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceEntityDeleteTest.php - Test entity deletion in a workspace.
- WorkspaceInformationTest::setUp in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceInformationTest.php - WorkspaceIntegrationTest::assertWorkspaceStatus in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Checks entity load, entity queries and views results for a test scenario.
- WorkspaceIntegrationTest::testCliPublishing in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests workspace publishing as anonymous user, simulating a CLI request.
- WorkspaceIntegrationTest::testDisallowedEntityCreateInNonDefaultWorkspace in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests CREATE operations for unsupported entity types.
- WorkspaceIntegrationTest::testDisallowedEntityDeleteInNonDefaultWorkspace in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests DELETE operations for unsupported entity types.
- WorkspaceIntegrationTest::testDisallowedEntityUpdateInNonDefaultWorkspace in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests UPDATE operations for unsupported entity types.
- WorkspaceIntegrationTest::testEntityQueryRelationship in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests the Entity Query relationship API with workspaces.
- WorkspaceIntegrationTest::testEntityQueryWithoutConditions in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests entity query overrides without any conditions.
- WorkspaceIntegrationTest::testExecuteInWorkspaceContext in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - @covers \Drupal\workspaces\WorkspaceManager::executeInWorkspace
- WorkspaceIntegrationTest::testFormCacheForEntityForms in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests that entity forms can be stored in the form cache.
- WorkspaceIntegrationTest::testFormCacheForRegularForms in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests that non-entity forms can be stored in the form cache.
- WorkspaceIntegrationTest::testNodeAccessDifferringRevisionIdsOnTarget in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests workspace publishing is not sensitive to node access.
- WorkspaceIntegrationTest::testPublishWorkspaceDedicatedTableStorage in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests publishing with fields in dedicated table storage.
- WorkspaceIntegrationTest::testWorkspaceAssociationDataIntegrity in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests the workspace association data integrity for entity CRUD operations.
- WorkspaceIntegrationTest::testWorkspaceHierarchy in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests entity tracking in workspace descendants.
- WorkspaceIntegrationTest::testWorkspaces in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceIntegrationTest.php - Tests various scenarios for creating and publishing content in workspaces.
- WorkspaceMergerTest::testWorkspaceMerger in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceMergerTest.php - Tests workspace merging.
- WorkspacesContentModerationStateTest::setUp in core/
modules/ content_moderation/ tests/ src/ Kernel/ WorkspacesContentModerationStateTest.php - WorkspacesFileItemTest::setUp in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspacesFileItemTest.php - WorkspaceViewsIntegrationTest::testViewsQueryAlter in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceViewsIntegrationTest.php - Tests workspace query alter for views.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.