17 calls to UserCreationTrait::createRole()

AccessTest::setUp in core/modules/views/tests/src/Functional/Plugin/AccessTest.php
AccessTestBase::setUp in core/modules/user/tests/src/Functional/Views/AccessTestBase.php
CKEditorIntegrationTest::testPreviewUsesDefaultThemeAndIsClientCacheable in core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
The CKEditor Widget must load a preview generated using the default theme.
ConfigTranslationListUiTest::doUserRoleListTest in core/modules/config_translation/tests/src/Functional/ConfigTranslationListUiTest.php
Tests the role listing for the translate operation.
HandlerFieldRoleTest::testRole in core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.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.
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 that changes to a user account by another user clears the changed account's toolbar cached, not the user's who took the action.
ToolbarAdminMenuTest::testUserRoleUpdateSubtreesHashCacheClear in core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php
Exercises the toolbar_user_role_update() and toolbar_user_update() hook implementations.
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
Tests that a user can be assigned a role and that the role can be removed again.
UserRolesAssignmentTest::testCreateUserWithRole in core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
Tests that when creating a user the role can be assigned. And that it can be removed again.
UserSubAdminTest::testSubAdmin in core/modules/user/tests/src/Functional/UserSubAdminTest.php
Test 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.