90 files declare their use of Role in Drupal 9
- BasicAuthTest.php in core/
modules/ basic_auth/ tests/ src/ Functional/ BasicAuthTest.php - BlockContentAccessHandlerTest.php in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentAccessHandlerTest.php - BlockTest.php in core/
modules/ block/ tests/ src/ Functional/ BlockTest.php - BrowserTestBaseTest.php in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - CacheContextOptimizationTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ CacheContextOptimizationTest.php - CKEditorIntegrationTest.php in core/
modules/ media/ tests/ src/ FunctionalJavascript/ CKEditorIntegrationTest.php - CommentAdminViewTest.php in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentAdminViewTest.php - CommentCacheTagsTest.php in core/
modules/ comment/ tests/ src/ Functional/ CommentCacheTagsTest.php - CommentFieldAccessTest.php in core/
modules/ comment/ tests/ src/ Kernel/ CommentFieldAccessTest.php - CommentUserNameTest.php in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentUserNameTest.php - CommentViewsKernelTestBase.php in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentViewsKernelTestBase.php - ConfigAccessTest.php in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ ConfigAccessTest.php - ConfigDraggableListBuilderTest.php in core/
modules/ config/ tests/ src/ Functional/ ConfigDraggableListBuilderTest.php - ConfigInstallProfileOverrideTest.php in core/
modules/ config/ tests/ src/ Functional/ ConfigInstallProfileOverrideTest.php - ContentModerationAccessTest.php in core/
modules/ content_moderation/ tests/ src/ Kernel/ ContentModerationAccessTest.php - ContentTranslationOperationsTest.php in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationOperationsTest.php - ContextualLinksTest.php in core/
modules/ contextual/ tests/ src/ FunctionalJavascript/ ContextualLinksTest.php - DefaultViewsTest.php in core/
modules/ views_ui/ tests/ src/ Functional/ DefaultViewsTest.php - EditorPrivateFileReferenceFilterTest.php in core/
modules/ editor/ tests/ src/ Functional/ EditorPrivateFileReferenceFilterTest.php - EntityAutocompleteElementFormTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ Element/ EntityAutocompleteElementFormTest.php - EntityCacheTagsTestBase.php in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - EntityDisplayTest.php in core/
modules/ field_ui/ tests/ src/ Kernel/ EntityDisplayTest.php - EntityReferenceFieldTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityReferenceFieldTest.php - EntityReferenceFormatterTest.php in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceFormatterTest.php - EntityReferenceRdfaTest.php in core/
modules/ rdf/ tests/ src/ Kernel/ Field/ EntityReferenceRdfaTest.php - EntityResourceTest.php in core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ EntityResourceTest.php - EntityViewBuilderTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityViewBuilderTest.php - ExternalNormalizersTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ ExternalNormalizersTest.php - FeedCacheTagsTest.php in core/
modules/ aggregator/ tests/ src/ Functional/ FeedCacheTagsTest.php - FieldEntityLinkTest.php in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldEntityLinkTest.php - FieldFieldAccessTestBase.php in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldFieldAccessTestBase.php - FieldRenderedEntityTest.php in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldRenderedEntityTest.php - FileItemTest.php in core/
modules/ file/ tests/ src/ Kernel/ FileItemTest.php - FilterAdminTest.php in core/
modules/ filter/ tests/ src/ Functional/ FilterAdminTest.php - HandlerFilterRolesTest.php in core/
modules/ user/ tests/ src/ Kernel/ Views/ HandlerFilterRolesTest.php - ImageItemTest.php in core/
modules/ image/ tests/ src/ Kernel/ ImageItemTest.php - ItemCacheTagsTest.php in core/
modules/ aggregator/ tests/ src/ Functional/ ItemCacheTagsTest.php - JsonApiFunctionalMultilingualTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - JsonApiFunctionalTestBase.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTestBase.php - JsonApiRegressionTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - KernelTestBaseTest.php in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - MediaAccessTest.php in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - MediaCreationTest.php in core/
modules/ media/ tests/ src/ Kernel/ MediaCreationTest.php - MediaOverviewPageTest.php in core/
modules/ media/ tests/ src/ Functional/ MediaOverviewPageTest.php - MediaResourceTestBase.php in core/
modules/ media/ tests/ src/ Functional/ Rest/ MediaResourceTestBase.php - MediaRevisionTest.php in core/
modules/ media/ tests/ src/ Functional/ MediaRevisionTest.php - MediaSourceImageTest.php in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceImageTest.php - MediaSourceOEmbedVideoTest.php in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceOEmbedVideoTest.php - MigrateUserRoleTest.php in core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d6/ MigrateUserRoleTest.php - MigrateUserRoleTest.php in core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d7/ MigrateUserRoleTest.php - ModerationStateTestBase.php in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateTestBase.php - node.views.inc in core/
modules/ node/ node.views.inc - Provide views data for node.module.
- NodePreviewAnonymousTest.php in core/
modules/ node/ tests/ src/ Functional/ NodePreviewAnonymousTest.php - OverriddenConfigurationTest.php in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ OverriddenConfigurationTest.php - PathElementFormTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Element/ PathElementFormTest.php - ResourceTest.php in core/
modules/ rest/ tests/ src/ Functional/ ResourceTest.php - ResourceTestBase.php in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - ResourceTestBase.php in core/
modules/ rest/ tests/ src/ Functional/ ResourceTestBase.php - RoleResourceTestBase.php in core/
modules/ user/ tests/ src/ Functional/ Rest/ RoleResourceTestBase.php - RolesRidTest.php in core/
modules/ user/ tests/ src/ Unit/ Views/ Argument/ RolesRidTest.php - RoleTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ RoleTest.php - RouteProviderTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ RouteProviderTest.php - SettingsTrayBlockFormTest.php in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ SettingsTrayBlockFormTest.php - SettingsTrayIntegrationTest.php in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ SettingsTrayIntegrationTest.php - ShortcutCacheTagsTest.php in core/
modules/ shortcut/ tests/ src/ Functional/ ShortcutCacheTagsTest.php - StandardTest.php in core/
profiles/ standard/ tests/ src/ Functional/ StandardTest.php - StatisticsLoggingTest.php in core/
modules/ statistics/ tests/ src/ FunctionalJavascript/ StatisticsLoggingTest.php - TaxonomyTermViewTest.php in core/
modules/ taxonomy/ tests/ src/ Functional/ Views/ TaxonomyTermViewTest.php - TestPageTestController.php in core/
modules/ system/ tests/ modules/ test_page_test/ src/ Controller/ TestPageTestController.php - TextFormatElementFormTest.php in core/
modules/ filter/ tests/ src/ Kernel/ TextFormatElementFormTest.php - ToolbarAdminMenuTest.php in core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarAdminMenuTest.php - TourCacheTagsTest.php in core/
modules/ tour/ tests/ src/ Functional/ TourCacheTagsTest.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.post_update.php in core/
modules/ user/ user.post_update.php - Post update functions for User module.
- UserActionConfigSchemaTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserActionConfigSchemaTest.php - UserCacheTagsTest.php in core/
modules/ user/ tests/ src/ Functional/ UserCacheTagsTest.php - UserCreationTrait.php in core/
modules/ user/ tests/ src/ Traits/ UserCreationTrait.php - UserEntityReferenceTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserEntityReferenceTest.php - UserPermissionsTest.php in core/
modules/ user/ tests/ src/ Functional/ UserPermissionsTest.php - UserRoleAdminTest.php in core/
modules/ user/ tests/ src/ Functional/ UserRoleAdminTest.php - UserRoleConditionTest.php in core/
modules/ user/ tests/ src/ Kernel/ Condition/ UserRoleConditionTest.php - UserRoleDeleteTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserRoleDeleteTest.php - UserRoleEntityTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserRoleEntityTest.php - UserUpdateRoleDependenciesTest.php in core/
modules/ user/ tests/ src/ Functional/ Update/ UserUpdateRoleDependenciesTest.php - UserValidationTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserValidationTest.php - ValidReferenceConstraintValidatorTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ValidReferenceConstraintValidatorTest.php - ViewsConfigDependenciesIntegrationTest.php in core/
modules/ views/ tests/ src/ Kernel/ ViewsConfigDependenciesIntegrationTest.php - WidgetAccessTest.php in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetAccessTest.php - WidgetAnonymousTest.php in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetAnonymousTest.php