24 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.
- EntityReferenceSelectionAccessTest::setUp in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelection/ EntityReferenceSelectionAccessTest.php - FileListingTest::testFileListingPages in core/
modules/ file/ tests/ src/ Functional/ FileListingTest.php - Tests file overview with different user permissions.
- HandlerFieldRoleTest::testRole in core/
modules/ user/ tests/ src/ Functional/ Views/ HandlerFieldRoleTest.php - JsonApiFilterRegressionTest::testFilteringEntitiesByEntityReferenceTargetId in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFilterRegressionTest.php - Tests that collections can be filtered by an entity reference target_id.
- 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.
- NavigationShortcutsBlockTest::testNavigationBlock in core/
modules/ navigation/ tests/ src/ Functional/ NavigationShortcutsBlockTest.php - Tests visibility and cacheability of shortcuts in the navigation bar.
- PermissionsPerBundleTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ PermissionsPerBundleTest.php - ShortcutCacheTagsTest::testBlock in core/
modules/ shortcut/ tests/ src/ Functional/ ShortcutCacheTagsTest.php - Tests visibility and cacheability of shortcuts in the block.
- ShortcutCacheTagsTest::testToolbar in core/
modules/ shortcut/ tests/ src/ Functional/ ShortcutCacheTagsTest.php - Tests visibility and cacheability of shortcuts in the toolbar.
- ShortcutsNavigationBlockTest::testNavigationBlock in core/
modules/ navigation/ tests/ src/ Functional/ ShortcutsNavigationBlockTest.php - Tests visibility and cacheability of shortcuts in the navigation bar.
- 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.
- 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.
- WhoIsOnlineBlockTest::testWhoIsOnlineBlock in core/
modules/ user/ tests/ src/ Kernel/ WhoIsOnlineBlockTest.php - Tests the Who's Online block.
- 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.