BackdropWebTestCase::backdropCreateUser in core/modules/simpletest/backdrop_web_test_case.php
Create a user with a given set of permissions.
DrupalWebTestCase::drupalCreateRole in core/includes/drupal.classes.inc
FieldViewsTestHelper::CreateUser in core/modules/field/tests/field_views.test
NodeTypeTestCase::testNodeTypePermissions in core/modules/node/tests/node.test
Tests that node types permissions are correctly set from the Node Type UI.
TaxonomyVocabularyFunctionalTest::testVocabularyPermissions in core/modules/taxonomy/tests/taxonomy.test
Tests that node types permissions are correctly set from the Node Type UI.
UserRolesAssignmentTestCase::testAssignAndRemoveRole in core/modules/user/tests/user.test
Tests that a user can be assigned a role and that the role can be removed again.
UserRolesAssignmentTestCase::testCreateUserWithRole in core/modules/user/tests/user.test
Tests that when creating a user the role can be assigned. And that it can be removed again.
ViewsAccessTest::setUp in core/modules/views/tests/views_access.test
Sets up a Backdrop site for running functional and integration tests.