22 calls to UserCreationTrait::createRole()
- AccessTest::setUp in core/
modules/ views/ tests/ src/ Functional/ Plugin/ AccessTest.php - Sets up the test.
- AccessTestBase::setUp in core/
modules/ user/ tests/ src/ Functional/ Views/ AccessTestBase.php - Sets up the test.
- ConfigTranslationListUiTest::doUserRoleListTest in core/
modules/ config_translation/ tests/ src/ Functional/ ConfigTranslationListUiTest.php - Tests the role listing for the translate operation.
- ContextualFiltersStringTest::setUp in core/
modules/ views/ tests/ src/ Functional/ Plugin/ ContextualFiltersStringTest.php - Sets up the test.
- HandlerFieldRoleTest::testRole in core/
modules/ user/ tests/ src/ Functional/ Views/ HandlerFieldRoleTest.php - JsonApiRegressionTest::testFilteringEntitiesByEntityReferenceTargetId in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - Tests that collections can be filtered by an entity reference target_id.
- MediaEmbedFilterDisabledIntegrationsTest::setUp in core/
modules/ quickedit/ tests/ src/ Kernel/ MediaEmbedFilterDisabledIntegrationsTest.php - MediaEmbedFilterDisabledIntegrationsTest::setUp in core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterDisabledIntegrationsTest.php - MediaEmbedFilterTest::testAccessUnpublished in core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterTest.php - Tests that entity access is respected by embedding an unpublished entity.
- MediaTest::testPreviewUsesDefaultThemeAndIsClientCacheable in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ MediaTest.php - The CKEditor Widget must load a preview generated using the default theme.
- MediaTest::testPreviewUsesDefaultThemeAndIsClientCacheable in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - The CKEditor Widget must load a preview generated using the default theme.
- ShortcutCacheTagsTest::testToolbar in core/
modules/ shortcut/ tests/ src/ Functional/ ShortcutCacheTagsTest.php - Tests visibility and cacheability of shortcuts in the toolbar.
- ToolbarAdminMenuTest::testNonCurrentUserAccountUpdates in core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarAdminMenuTest.php - Tests cache invalidation when one user modifies another user.
- ToolbarAdminMenuTest::testUserRoleUpdateSubtreesHashCacheClear in core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarAdminMenuTest.php - Tests Toolbar's responses to user data updates.
- UpdateAddViewUpdateNotificationsPermissionTest::testViewUpdateNotificationsPermission in core/
modules/ update/ tests/ src/ Functional/ Update/ UpdateAddViewUpdateNotificationsPermissionTest.php - Tests that the 'view update notifications' permission is correctly granted.
- UserAdminListingTest::testUserListing in core/
modules/ user/ tests/ src/ Functional/ UserAdminListingTest.php - Tests the listing.
- UserCreationTrait::createAdminRole in core/
modules/ user/ tests/ src/ Traits/ UserCreationTrait.php - Creates an administrative role.
- UserCreationTrait::createUser in core/
modules/ user/ tests/ src/ Traits/ UserCreationTrait.php - Create a user with a given set of permissions.
- UserRolesAssignmentTest::testAssignAndRemoveRole in core/
modules/ user/ tests/ src/ Functional/ UserRolesAssignmentTest.php - Test that user can be assigned role and that the role can be removed again.
- UserRolesAssignmentTest::testCreateUserWithRole in core/
modules/ user/ tests/ src/ Functional/ UserRolesAssignmentTest.php - Tests assigning a role at user creation and removing the role.
- UserSubAdminTest::testSubAdmin in core/
modules/ user/ tests/ src/ Functional/ UserSubAdminTest.php - Tests create and cancel forms as 'sub-admin'.
- WorkspaceAccessTest::testWorkspaceAccess in core/
modules/ workspaces/ tests/ src/ Kernel/ WorkspaceAccessTest.php - Verifies all workspace roles have the correct access for the operation.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.