Search for test

  1. Search 7.x for test
  2. Search 9.5.x for test
  3. Search 8.9.x for test
  4. Search 11.x for test
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Test class core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php Provides test media source.
Test class core/modules/system/tests/modules/test_page_test/src/Controller/Test.php Defines a test controller for page titles.

All search results

Title Object type File name Summary
UserRolesAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Tests the getPersistentCacheContexts method.
UserRolesAssignmentTest class core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Tests that users can be assigned and unassigned roles.
UserRolesAssignmentTest.php file core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
UserRolesAssignmentTest::$defaultTheme property core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php The theme to install as the default for testing.
UserRolesAssignmentTest::setUp function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php
UserRolesAssignmentTest::testAssignAndRemoveRole function 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 function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Tests assigning a role at user creation and removing the role.
UserRolesAssignmentTest::userLoadAndCheckRoleAssigned function core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php Check role on user object.
UserRolesCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\UserRolesCacheContext[[api-linebreak]]
@group Cache
UserRolesCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php
UserRolesCacheContextTest::testCalculatedRole function core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php @covers ::getContext[[api-linebreak]]
UserRolesPermissionsTest class core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php Test case for getting permissions from user roles.
UserRolesPermissionsTest.php file core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php
UserRolesPermissionsTest::$modules property core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php Modules to install.
UserRolesPermissionsTest::setUp function core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php
UserRolesPermissionsTest::testPermissionChange function core/tests/Drupal/KernelTests/Core/Session/UserRolesPermissionsTest.php Tests that assigning a role grants that role's permissions.
UserRoleTest class core/modules/user/tests/src/Kernel/Views/UserRoleTest.php Tests rendering when the role is numeric.
UserRoleTest.php file core/modules/user/tests/src/Kernel/Views/UserRoleTest.php
UserRoleTest::testNumericRole function core/modules/user/tests/src/Kernel/Views/UserRoleTest.php Tests numeric role.
UserRouteAlterTest class core/modules/serialization/tests/src/Kernel/UserRouteAlterTest.php Tests that the user routes can be altered.
UserRouteAlterTest.php file core/modules/serialization/tests/src/Kernel/UserRouteAlterTest.php
UserRouteAlterTest::$modules property core/modules/serialization/tests/src/Kernel/UserRouteAlterTest.php Modules to install.
UserRouteAlterTest::testUserAlteredRoute function core/modules/serialization/tests/src/Kernel/UserRouteAlterTest.php Tests the altered 'user.login.http' route.
UserSaveStatusTest class core/modules/user/tests/src/Kernel/UserSaveStatusTest.php Tests user saving status.
UserSaveStatusTest.php file core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
UserSaveStatusTest::$modules property core/modules/user/tests/src/Kernel/UserSaveStatusTest.php Modules to install.
UserSaveStatusTest::setUp function core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
UserSaveStatusTest::testUserSaveStatus function core/modules/user/tests/src/Kernel/UserSaveStatusTest.php Tests SAVED_NEW and SAVED_UPDATED statuses for user entity type.
UserSaveTest class core/modules/user/tests/src/Kernel/UserSaveTest.php Tests account saving for arbitrary new uid.
UserSaveTest.php file core/modules/user/tests/src/Kernel/UserSaveTest.php
UserSaveTest::$modules property core/modules/user/tests/src/Kernel/UserSaveTest.php Modules to install.
UserSaveTest::testExistingPasswordRemoval function core/modules/user/tests/src/Kernel/UserSaveTest.php Ensures that an existing password is unset after the user was saved.
UserSearchTest class core/modules/user/tests/src/Functional/UserSearchTest.php Verifies that sensitive information is hidden from unauthorized users.
UserSearchTest.php file core/modules/user/tests/src/Functional/UserSearchTest.php
UserSearchTest::$defaultTheme property core/modules/user/tests/src/Functional/UserSearchTest.php The theme to install as the default for testing.
UserSearchTest::$modules property core/modules/user/tests/src/Functional/UserSearchTest.php Modules to install.
UserSearchTest::testUserSearch function core/modules/user/tests/src/Functional/UserSearchTest.php
UserSessionTest class core/tests/Drupal/Tests/Core/Session/UserSessionTest.php @coversDefaultClass \Drupal\Core\Session\UserSession[[api-linebreak]]
@group Session
UserSessionTest.php file core/tests/Drupal/Tests/Core/Session/UserSessionTest.php
UserSessionTest::createUserSession function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Setups a user session for the test.
UserSessionTest::testHasPermission function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the has permission method.
UserSessionTest::testHasPermissionLegacy function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests deprecation when permission is not a string.
UserSessionTest::testHasRole function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the hasRole method.
UserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
UserSubAdminTest class core/modules/user/tests/src/Functional/UserSubAdminTest.php Test 'sub-admin' account with permission to edit some users but without 'administer users' permission.
UserSubAdminTest.php file core/modules/user/tests/src/Functional/UserSubAdminTest.php
UserSubAdminTest::$defaultTheme property core/modules/user/tests/src/Functional/UserSubAdminTest.php The theme to install as the default for testing.
UserSubAdminTest::$modules property core/modules/user/tests/src/Functional/UserSubAdminTest.php Modules to install.
UserSubAdminTest::testSubAdmin function core/modules/user/tests/src/Functional/UserSubAdminTest.php Tests create and cancel forms as 'sub-admin'.
UserTest class core/modules/user/tests/src/Kernel/Plugin/migrate/source/d6/UserTest.php Tests the d6_user source plugin.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.