Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
WebTestBase.php
»
WebTestBase
»
WebTestBase::drupalCreateRole
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
7 calls to WebTestBase::drupalCreateRole()
AccessTest::setUp
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Plugin/
AccessTest.php
Sets up a Drupal site for running functional and integration tests.
AccessTestBase::setUp
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
Views/
AccessTestBase.php
Sets up a Drupal site for running functional and integration tests.
HandlerFieldRoleTest::testRole
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
Views/
HandlerFieldRoleTest.php
UserAdminListingTest::testUserListing
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserAdminListingTest.php
Tests the listing.
UserRolesAssignmentTest::testAssignAndRemoveRole
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserRolesAssignmentTest.php
Tests that a user can be assigned a role and that the role can be removed again.
UserRolesAssignmentTest::testCreateUserWithRole
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserRolesAssignmentTest.php
Tests that when creating a user the role can be assigned. And that it can be removed again.
WebTestBase::drupalCreateUser
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
WebTestBase.php
Create a user with a given set of permissions.