| PermissionCheckerTest |
class |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
Tests Drupal\Core\Session\PermissionChecker. |
| PermissionCheckerTest.php |
file |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
|
| PermissionCheckerTest::$account |
property |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
The mocked account to use for testing. |
| PermissionCheckerTest::$checker |
property |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
The permission checker to run tests on. |
| PermissionCheckerTest::$processor |
property |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
The mocked access policy processor. |
| PermissionCheckerTest::setUp |
function |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
|
| PermissionCheckerTest::testHasPermission |
function |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
Tests the hasPermission method under normal circumstances. |
| PermissionCheckerTest::testHasPermissionEmpty |
function |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
Tests the hasPermission method when no policy added something. |
| PermissionCheckerTest::testHasPermissionMixed |
function |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
Tests the hasPermission method when mixed scopes and identifiers exist. |
| PermissionCheckerTest::testHasPermissionOnlyContrib |
function |
core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php |
Tests the hasPermission method with only contrib scopes and identifiers. |
| PermissionFilterTest |
class |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
Tests the JavaScript functionality of the permission filter. |
| PermissionFilterTest.php |
file |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
|
| PermissionFilterTest::$defaultTheme |
property |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
|
| PermissionFilterTest::$modules |
property |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
|
| PermissionFilterTest::filterVisibleElements |
function |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
Removes any non-visible elements from the passed array. |
| PermissionFilterTest::setUp |
function |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
|
| PermissionFilterTest::testPermissionFilter |
function |
core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php |
Tests that filter results announcement has correct pluralization. |
| PermissionHandlerTest |
class |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Tests the permission handler. |
| PermissionHandlerTest.php |
file |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
|
| PermissionHandlerTest::$callableResolver |
property |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
The mocked callable resolver. |
| PermissionHandlerTest::$moduleHandler |
property |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
The mocked module handler. |
| PermissionHandlerTest::$permissionHandler |
property |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
The tested permission handler. |
| PermissionHandlerTest::$stringTranslation |
property |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
The mocked string translation. |
| PermissionHandlerTest::assertPermissions |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Checks that the permissions are like expected. |
| PermissionHandlerTest::mockModuleExtension |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Provides an extension object for a given module with a human name. |
| PermissionHandlerTest::setUp |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
|
| PermissionHandlerTest::testBuildPermissionsSortPerModule |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Tests permissions sort inside a module. |
| PermissionHandlerTest::testBuildPermissionsYaml |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Tests permissions provided by YML files. |
| PermissionHandlerTest::testBuildPermissionsYamlCallback |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Tests dynamic callback permissions provided by YML files. |
| PermissionHandlerTest::testPermissionsYamlStaticAndCallback |
function |
core/modules/user/tests/src/Unit/PermissionHandlerTest.php |
Tests a YAML file containing both static permissions and a callback. |
| PermissionsHashGeneratorTest |
class |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
Tests Drupal\Core\Session\PermissionsHashGenerator. |
| PermissionsHashGeneratorTest.php |
file |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
|
| PermissionsHashGeneratorTest::$account1 |
property |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
The mocked user 1 account. |
| PermissionsHashGeneratorTest::$account2 |
property |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
The mocked user 2 account. |
| PermissionsHashGeneratorTest::$permissionsHash |
property |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
The permission hash class being tested. |
| PermissionsHashGeneratorTest::$processor |
property |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
The mocked access policy processor. |
| PermissionsHashGeneratorTest::$staticCache |
property |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
The mocked cache backend. |
| PermissionsHashGeneratorTest::setUp |
function |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
|
| PermissionsHashGeneratorTest::testGenerateAdmin |
function |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
Tests the generate method for admin users. |
| PermissionsHashGeneratorTest::testGenerateCache |
function |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
Tests the generate method's caching. |
| PermissionsHashGeneratorTest::testGenerateNoAccessPolicies |
function |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
Tests the generate method with no access policies. |
| PermissionsHashGeneratorTest::testGenerateRegular |
function |
core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php |
Tests the generate method for regular accounts. |
| PermissionsPerBundleTest |
class |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
Tests Permissions Per Bundle. |
| PermissionsPerBundleTest.php |
file |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
|
| PermissionsPerBundleTest::$modules |
property |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
|
| PermissionsPerBundleTest::applyRecipeFromString |
function |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
Given a string of `recipe.yml` contents, applies it to the site. |
| PermissionsPerBundleTest::setUp |
function |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
|
| PermissionsPerBundleTest::testActionIsOnlyAvailableToUserRoles |
function |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
Tests that the permissions-per-bundle action can only be applied to roles. |
| PermissionsPerBundleTest::testGrantPermissionsOnOneBundleThenAll |
function |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
Tests granting permissions for one bundle, then all of them. |
| PermissionsPerBundleTest::testGrantPermissionsPerBundle |
function |
core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php |
Tests granting multiple bundle-specific permissions. |