191 files declare their use of User

AccessTest.php in core/modules/file/tests/src/Kernel/AccessTest.php
AddedStylesheetsTest.php in core/modules/ckeditor5/tests/src/Functional/AddedStylesheetsTest.php
AssignOwnerNode.php in core/modules/action/src/Plugin/Action/AssignOwnerNode.php
BlockContentAccessHandlerTest.php in core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php
BlockContentUpdateTest.php in core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
BulkFormAccessTest.php in core/modules/user/tests/src/Functional/Views/BulkFormAccessTest.php
BulkFormTest.php in core/modules/user/tests/src/Functional/Views/BulkFormTest.php
BundleClassTest.php in core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
CastedIntFieldJoinTestBase.php in core/modules/views/tests/src/Kernel/Plugin/CastedIntFieldJoinTestBase.php
CKEditor5FragmentLinkTest.php in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php
CKEditor5ToolbarTest.php in core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5ToolbarTest.php
Comment.php in core/modules/comment/src/Entity/Comment.php
CommentAdminViewTest.php in core/modules/comment/tests/src/Kernel/Views/CommentAdminViewTest.php
CommentResourceTestBase.php in core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
CommentTest.php in core/modules/jsonapi/tests/src/Functional/CommentTest.php
CommentTokenReplaceTest.php in core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
CommentUserNameTest.php in core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
CommentValidationTest.php in core/modules/comment/tests/src/Kernel/CommentValidationTest.php
CommentViewsFieldAccessTest.php in core/modules/comment/tests/src/Kernel/Views/CommentViewsFieldAccessTest.php
ConditionTestDualUserTest.php in core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php
contact.module in core/modules/contact/contact.module
Enables the use of personal and site-wide contact forms.
ContactLinkTest.php in core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php
ContentEntityHasChangesTest.php in core/tests/Drupal/KernelTests/Core/Entity/ContentEntityHasChangesTest.php
ContentEntityTest.php in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
ContentTranslationFieldSyncRevisionTest.php in core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php
ContentTranslationHandler.php in core/modules/content_translation/src/ContentTranslationHandler.php
ContextPluginTest.php in core/tests/Drupal/KernelTests/Core/Plugin/ContextPluginTest.php
CurrentUserContextTest.php in core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php
DatabaseTestForm.php in core/modules/system/tests/modules/database_test/src/Form/DatabaseTestForm.php
DbDumpTest.php in core/modules/mysql/tests/src/Kernel/mysql/DbDumpTest.php
DbLogController.php in core/modules/dblog/src/Controller/DbLogController.php
DbLogFormInjectionTest.php in core/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php
delay_cache_tags_invalidation.module in core/modules/system/tests/modules/delay_cache_tags_invalidation/delay_cache_tags_invalidation.module
Functions to test delayed cache tags invalidation.
DeleteActionTest.php in core/tests/Drupal/KernelTests/Core/Action/DeleteActionTest.php
DrupalDateTimeTest.php in core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
DynamicPageCacheTestController.php in core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php
EndOfTransactionQueriesTest.php in core/tests/Drupal/KernelTests/Core/Cache/EndOfTransactionQueriesTest.php
EntityAccessControlHandlerTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
EntityAutocompleteElementFormTest.php in core/tests/Drupal/KernelTests/Core/Entity/Element/EntityAutocompleteElementFormTest.php
EntityContentBaseTest.php in core/modules/migrate_drupal/tests/src/Kernel/d6/EntityContentBaseTest.php
EntityCrudHookTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php
EntityDecoupledTranslationRevisionsTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php
EntityExistsTest.php in core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php
EntityReferenceFieldTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php
EntityReferenceItemTest.php in core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceItemTest.php
EntityReferenceSelectionAccessTest.php in core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelection/EntityReferenceSelectionAccessTest.php
EntityResourceTest.php in core/modules/jsonapi/tests/src/Kernel/Controller/EntityResourceTest.php
EntityResourceValidationTraitTest.php in core/modules/rest/tests/src/Unit/EntityResourceValidationTraitTest.php
EntityTestComputedFieldTest.php in core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php
EntityTestLabelResourceTestBase.php in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php
EntityTestMapFieldResourceTestBase.php in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php
EntityTestMapFieldTest.php in core/modules/jsonapi/tests/src/Functional/EntityTestMapFieldTest.php
EntityTestResourceTestBase.php in core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestResourceTestBase.php
EntityTestTest.php in core/modules/jsonapi/tests/src/Functional/EntityTestTest.php
EntityTestUserClass.php in core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestUserClass.php
ExternalFormUrlTest.php in core/tests/Drupal/KernelTests/Core/Form/ExternalFormUrlTest.php
FastTest.php in core/modules/system/tests/src/Functional/Theme/FastTest.php
FieldAccessTest.php in core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php
FieldEntityTest.php in core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php
FieldFieldAccessTestBase.php in core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php
FieldFieldTest.php in core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
FieldRenderedEntityTest.php in core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php
FileFieldWidgetTest.php in core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
FileItemValidationTest.php in core/modules/file/tests/src/Kernel/FileItemValidationTest.php
FileManagedAccessTest.php in core/modules/file/tests/src/Kernel/FileManagedAccessTest.php
FileManagedUnitTestBase.php in core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
FileResourceTestBase.php in core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php
FileTest.php in core/modules/jsonapi/tests/src/Functional/FileTest.php
FileUploadResourceTestBase.php in core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php
FileUploadTest.php in core/modules/jsonapi/tests/src/Kernel/Controller/FileUploadTest.php
FileUploadTest.php in core/modules/jsonapi/tests/src/Functional/FileUploadTest.php
FileViewsFieldAccessTest.php in core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
FollowUpMigrationsTest.php in core/modules/migrate_drupal/tests/src/Kernel/d7/FollowUpMigrationsTest.php
FormActionXssTest.php in core/tests/Drupal/KernelTests/Core/Form/FormActionXssTest.php
forum.module in core/modules/forum/forum.module
Provides discussion forums.
HandlerArgumentUserUidTest.php in core/modules/user/tests/src/Kernel/Views/HandlerArgumentUserUidTest.php
HandlerFieldRoleTest.php in core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.php
HistoryTimestampTest.php in core/modules/history/tests/src/Kernel/Views/HistoryTimestampTest.php
install.core.inc in core/includes/install.core.inc
API functions for installing Drupal.
InstallerTranslationTest.php in core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
IntegrationTest.php in core/modules/statistics/tests/src/Functional/Views/IntegrationTest.php
JsonApiDocumentTopLevelNormalizerTest.php in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
JsonApiRegressionTest.php in core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php
MailHandlerTest.php in core/modules/contact/tests/src/Unit/MailHandlerTest.php
ManageFieldsTest.php in core/modules/field_ui/tests/src/Functional/ManageFieldsTest.php
MediaCreationTest.php in core/modules/media/tests/src/Kernel/MediaCreationTest.php
MediaEntityMetadataApiTest.php in core/modules/ckeditor5/tests/src/Functional/MediaEntityMetadataApiTest.php
MediaKernelTestBase.php in core/modules/media/tests/src/Kernel/MediaKernelTestBase.php
MediaResourceTestBase.php in core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php
MediaTest.php in core/modules/jsonapi/tests/src/Functional/MediaTest.php
MenuLinkContentCacheabilityBubblingTest.php in core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentCacheabilityBubblingTest.php
MenuLinksTest.php in core/modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php
MigrateEntityContentValidationTest.php in core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php
MigrateNodeTestBase.php in core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTestBase.php
MigrateShortcutSetUsersTest.php in core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php
MigrateUpgradeTestBase.php in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php
MigrateUserAdminPassTest.php in core/modules/user/tests/src/Kernel/Migrate/MigrateUserAdminPassTest.php
MigrateUserProfileValuesTest.php in core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserProfileValuesTest.php
MigrateUserTest.php in core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserTest.php
MigrateUserTest.php in core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserTest.php
Name.php in core/modules/user/src/Plugin/views/filter/Name.php
NavigationMenuBlockTest.php in core/modules/navigation/tests/src/Kernel/NavigationMenuBlockTest.php
node.tokens.inc in core/modules/node/node.tokens.inc
Builds placeholder replacement tokens for node-related data.
NodeAccessGrantsCacheContextTest.php in core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php
NodeAccessLanguageAwareCombinationTest.php in core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareCombinationTest.php
NodeAccessLanguageAwareTest.php in core/modules/node/tests/src/Kernel/NodeAccessLanguageAwareTest.php
NodeAccessLanguageTest.php in core/modules/node/tests/src/Kernel/NodeAccessLanguageTest.php
NodeAccessPagerTest.php in core/modules/node/tests/src/Functional/NodeAccessPagerTest.php
NodeActionsConfigurationTest.php in core/modules/action/tests/src/Functional/Node/NodeActionsConfigurationTest.php
NodeContextualLinksTest.php in core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php
NodeCreationTrait.php in core/modules/node/tests/src/Traits/NodeCreationTrait.php
NodeEditFormTest.php in core/modules/node/tests/src/Functional/NodeEditFormTest.php
NodeOwnerTest.php in core/modules/node/tests/src/Kernel/NodeOwnerTest.php
NodeQueryAlterTest.php in core/modules/node/tests/src/Functional/NodeQueryAlterTest.php
NodeResourceTestBase.php in core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php
NodeTest.php in core/modules/jsonapi/tests/src/Functional/NodeTest.php
NodeViewBuilderTest.php in core/modules/node/tests/src/Kernel/NodeViewBuilderTest.php
NodeViewsFieldAccessTest.php in core/modules/node/tests/src/Kernel/Views/NodeViewsFieldAccessTest.php
PasswordCompatibilityUpdateTest.php in core/modules/system/tests/src/Functional/Update/PasswordCompatibilityUpdateTest.php
PathElementFormTest.php in core/tests/Drupal/KernelTests/Core/Element/PathElementFormTest.php
PathLanguageTest.php in core/modules/path/tests/src/Functional/PathLanguageTest.php
PathProcessorTest.php in core/modules/system/tests/modules/url_alter_test/src/PathProcessorTest.php
ProtectedUserFieldConstraintValidatorTest.php in core/modules/user/tests/src/Unit/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidatorTest.php
QueueSerializationTest.php in core/tests/Drupal/KernelTests/Core/Queue/QueueSerializationTest.php
RelationshipJoinTestBase.php in core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
RelationshipNormalizerTest.php in core/modules/jsonapi/tests/src/Kernel/Normalizer/RelationshipNormalizerTest.php
RelationshipUserFileDataTest.php in core/modules/file/tests/src/Kernel/Views/RelationshipUserFileDataTest.php
RelationshipUserImageDataTest.php in core/modules/image/tests/src/Kernel/Views/RelationshipUserImageDataTest.php
ResourceObjectNormalizerCacherTest.php in core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php
RevisionableContentEntityBaseTest.php in core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
RowEntityRenderersTest.php in core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php
RowEntityTest.php in core/modules/views/tests/src/Kernel/Plugin/RowEntityTest.php
SelectComplexTest.php in core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
SerializerTest.php in core/modules/jsonapi/tests/src/Kernel/Serializer/SerializerTest.php
ServerCommand.php in core/lib/Drupal/Core/Command/ServerCommand.php
ShortcutSetUsers.php in core/modules/shortcut/src/Plugin/migrate/destination/ShortcutSetUsers.php
SiteMaintenanceTest.php in core/modules/system/tests/src/Functional/System/SiteMaintenanceTest.php
StandardTestTrait.php in core/profiles/standard/tests/src/Traits/StandardTestTrait.php
StatisticsLastCommentName.php in core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php
SuperUserAccessInstallTest.php in core/tests/Drupal/FunctionalTests/Installer/SuperUserAccessInstallTest.php
SystemMenuBlockTest.php in core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php
SystemMenuNavigationBlockTest.php in core/modules/navigation/tests/src/Kernel/SystemMenuNavigationBlockTest.php
TemporaryJsonapiFileFieldUploaderTest.php in core/modules/jsonapi/tests/src/Kernel/Controller/TemporaryJsonapiFileFieldUploaderTest.php
TextFormatElementFormTest.php in core/modules/filter/tests/src/Kernel/TextFormatElementFormTest.php
TimeZoneItem.php in core/modules/user/src/TimeZoneItem.php
token.api.php in core/lib/Drupal/Core/Utility/token.api.php
Hooks related to the Token system.
TranslationLinkTest.php in core/modules/content_translation/tests/src/Functional/Views/TranslationLinkTest.php
UpdatePathTestBase.php in core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
UpdatePathTestBaseFilledTest.php in core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php
UpdateRemovedPostUpdateTest.php in core/modules/system/tests/src/Functional/UpdateSystem/UpdateRemovedPostUpdateTest.php
Upgrade7Test.php in core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php
UrlIntegrationTest.php in core/tests/Drupal/KernelTests/Core/Routing/UrlIntegrationTest.php
user.module in core/modules/user/user.module
Enables the user registration and login system.
user.tokens.inc in core/modules/user/user.tokens.inc
Builds placeholder replacement tokens for user-related data.
UserAccountFormFieldsTest.php in core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
UserAccountFormPasswordResetTest.php in core/modules/user/tests/src/Kernel/UserAccountFormPasswordResetTest.php
UserAdminListingTest.php in core/modules/user/tests/src/Functional/UserAdminListingTest.php
UserCacheTagsTest.php in core/modules/user/tests/src/Functional/UserCacheTagsTest.php
UserCancelTest.php in core/modules/user/tests/src/Functional/UserCancelTest.php
UserCreationTrait.php in core/modules/user/tests/src/Traits/UserCreationTrait.php
UserDataTest.php in core/modules/user/tests/src/Kernel/Views/UserDataTest.php
UserDeleteTest.php in core/modules/user/tests/src/Kernel/UserDeleteTest.php
UserEntityLabelTest.php in core/modules/user/tests/src/Kernel/UserEntityLabelTest.php
UserEntityTest.php in core/modules/user/tests/src/Kernel/UserEntityTest.php
UserFieldsTest.php in core/modules/user/tests/src/Kernel/UserFieldsTest.php
UserLoginTest.php in core/modules/user/tests/src/Functional/UserLoginTest.php
UserNameFormatterTest.php in core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php
UserPasswordResetTest.php in core/modules/user/tests/src/FunctionalJavascript/UserPasswordResetTest.php
UserPasswordResetTest.php in core/modules/user/tests/src/Functional/UserPasswordResetTest.php
UserRegistrationResource.php in core/modules/user/src/Plugin/rest/resource/UserRegistrationResource.php
UserRegistrationResourceTest.php in core/modules/user/tests/src/Unit/UserRegistrationResourceTest.php
UserResourceTestBase.php in core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
UserRoleConditionTest.php in core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
UserRoleDeleteTest.php in core/modules/user/tests/src/Kernel/UserRoleDeleteTest.php
UserRoleTest.php in core/modules/user/tests/src/Kernel/Views/UserRoleTest.php
UserSaveStatusTest.php in core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
UserSaveTest.php in core/modules/user/tests/src/Kernel/UserSaveTest.php
UserSessionTest.php in core/tests/Drupal/Tests/Core/Session/UserSessionTest.php
UserTest.php in core/modules/jsonapi/tests/src/Functional/UserTest.php
UserTestBase.php in core/modules/user/tests/src/Functional/Views/UserTestBase.php
UserTokenReplaceTest.php in core/modules/user/tests/src/Functional/UserTokenReplaceTest.php
UserValidationTest.php in core/modules/user/tests/src/Kernel/UserValidationTest.php
UserViewsFieldAccessTest.php in core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php
user_access_test.module in core/modules/user/tests/modules/user_access_test/user_access_test.module
Dummy module implementing hook_user_access() to test if entity access is respected.
ValidReferenceConstraintValidatorTest.php in core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
VersionNegotiatorTest.php in core/modules/jsonapi/tests/src/Kernel/Revisions/VersionNegotiatorTest.php
ViewExecutableTest.php in core/modules/views/tests/src/Kernel/ViewExecutableTest.php
WhoIsOnlineBlockTest.php in core/modules/user/tests/src/Kernel/WhoIsOnlineBlockTest.php
WorkspaceResourceTestBase.php in core/modules/workspaces/tests/src/Functional/EntityResource/WorkspaceResourceTestBase.php
WorkspaceResourceTestBase.php in core/modules/workspaces/tests/src/Functional/Rest/WorkspaceResourceTestBase.php
WorkspaceTest.php in core/modules/jsonapi/tests/src/Functional/WorkspaceTest.php

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