28 calls to UserCreationTrait::setCurrentUser()

ArgumentValidatorTermNameTest::testArgumentValidatorTermNameAccess in core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermNameTest.php
Tests the access checking in term name argument validator plugin.
CommentActionsTest::setUp in core/modules/comment/tests/src/Kernel/CommentActionsTest.php
EntityReferenceSelectionAccessTest::testCommentHandler in core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
Tests the comment-specific overrides of the entity handler.
EntityReferenceSelectionAccessTest::testMediaHandler in core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
Tests the selection handler for the media entity type.
EntityReferenceSelectionAccessTest::testNodeHandler in core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
Tests the node-specific overrides of the entity handler.
EntityReferenceSelectionAccessTest::testTermHandler in core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
Tests the term-specific overrides of the selection handler.
EntityReferenceSelectionAccessTest::testUserHandler in core/modules/system/tests/src/Functional/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
Tests the user-specific overrides of the entity handler.
EntityStateChangeValidationTest::testExistingContentWithNoModeration in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests that content without prior moderation information can be moderated.
EntityStateChangeValidationTest::testExistingMultilingualContentWithNoModeration in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests that content without prior moderation information can be translated.
EntityStateChangeValidationTest::testInvalidStateMultilingual in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests state transition validation with multiple languages.
EntityStateChangeValidationTest::testInvalidStateWithoutExisting in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests validation with no initial state or an invalid state.
EntityStateChangeValidationTest::testInvalidTransition in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests invalid transitions.
EntityStateChangeValidationTest::testTransitionAccessValidation in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
@dataProvider transitionAccessValidationTestCases
EntityStateChangeValidationTest::testValidTransition in core/modules/content_moderation/tests/src/Kernel/EntityStateChangeValidationTest.php
Tests valid transitions.
LinkCollectionNormalizerTest::getNormalizer in core/modules/jsonapi/tests/src/Kernel/Normalizer/LinkCollectionNormalizerTest.php
Get an instance of the normalizer to test.
MediaLibraryAccessTest::testAddFormAccess in core/modules/media_library/tests/src/Kernel/MediaLibraryAccessTest.php
Tests that the media library respects arbitrary access to the add form.
MediaLibraryAddFormTest::testMediaTypeAddForm in core/modules/media_library/tests/src/Kernel/MediaLibraryAddFormTest.php
Tests the media library add form.
RowRenderCacheTest::doTestRenderedOutput in core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
Check whether the rendered output matches expectations.
RowRenderCacheTest::testNoCaching in core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
Tests that rows are not cached when the none cache plugin is used.
TimezoneResolverTest::testGetTimeZone in core/modules/system/tests/src/Kernel/TimezoneResolverTest.php
Tests time zone resolution.
UserCreationTrait::setUpCurrentUser in core/modules/user/tests/src/Traits/UserCreationTrait.php
Creates a random user account and sets it as current user.
WorkspaceAccessTest::testPublishWorkspaceAccess in core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php
Tests workspace publishing access.
WorkspaceAccessTest::testWorkspaceAccess in core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php
Verifies all workspace roles have the correct access for the operation.
WorkspaceAccessTest::testWorkspaceSelection in core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php
@coversDefaultClass \Drupal\workspaces\Plugin\EntityReferenceSelection\WorkspaceSelection
WorkspaceCRUDTest::testDeletingPublishedWorkspace in core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php
Tests that deleting a workspace keeps its already published content.
WorkspaceCRUDTest::testDeletingWorkspaces in core/modules/workspaces/tests/src/Kernel/WorkspaceCRUDTest.php
Tests the deletion of workspaces.
WorkspaceIntegrationTest::setUp in core/modules/workspaces/tests/src/Kernel/WorkspaceIntegrationTest.php
WorkspaceMergerTest::setUp in core/modules/workspaces/tests/src/Kernel/WorkspaceMergerTest.php

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