34 calls to WorkspaceTestTrait::switchToWorkspace()

EntityReferenceSupportedNewEntitiesConstraintValidatorTest::testNewEntitiesForbiddenInNonDefaultWorkspace in core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php
Tests new entities forbidden in non default workspace.
EntityWorkspaceConflictConstraintValidatorTest::testNewEntitiesAllowedInDefaultWorkspace in core/modules/workspaces/tests/src/Kernel/EntityWorkspaceConflictConstraintValidatorTest.php
Tests new entities allowed in default 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.
WorkspaceEntityOperationsTest::testEntityCreation in core/modules/workspaces/tests/src/Kernel/WorkspaceEntityOperationsTest.php
Test published entity creation in a workspace.
WorkspaceEntityRepositoryTest::testGetActive in core/modules/workspaces/tests/src/Kernel/WorkspaceEntityRepositoryTest.php
Tests retrieving active variants in a workspace.
WorkspaceFormPersistenceTest::testFormPersistence in core/modules/workspaces/tests/src/Kernel/WorkspaceFormPersistenceTest.php
Tests that the active workspace is persisted throughout a form's lifecycle.
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::testCronRunsOutsideWorkspace in core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php
Tests that cron runs outside of workspace context.
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
Tests execute in workspace context.
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.
WorkspacePublisherTest::testPublishingChangedTime in core/modules/workspaces/tests/src/Kernel/WorkspacePublisherTest.php
Tests that publishing a workspace updates the changed time of its entities.
WorkspacesContentModerationStateTest::setUp in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
WorkspacesFileItemTest::setUp in core/modules/workspaces/tests/src/Kernel/WorkspacesFileItemTest.php
Set the default field storage backend for fields created during tests.
WorkspaceTrackerTest::testMoveAllTrackedEntities in core/modules/workspaces/tests/src/Kernel/WorkspaceTrackerTest.php
Tests moving all tracked entities of all types between workspaces.
WorkspaceTrackerTest::testMoveTrackedEntitiesOfSpecificType in core/modules/workspaces/tests/src/Kernel/WorkspaceTrackerTest.php
Tests moving all entities of a specific type while leaving others.
WorkspaceTrackerTest::testMoveTrackedEntitiesWithMultipleRevisions in core/modules/workspaces/tests/src/Kernel/WorkspaceTrackerTest.php
Tests moving an entity with multiple revisions between workspaces.
WorkspaceTrackerTest::testWorkspaceAssociation in core/modules/workspaces/tests/src/Kernel/WorkspaceTrackerTest.php
Tests the revisions tracked by a workspace.
WorkspaceTrackerTest::testWorkspaceAssociationForListing in core/modules/workspaces/tests/src/Kernel/WorkspaceTrackerTest.php
Tests the count of revisions returned for tracked entities listing.
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.