function SuperUserAccessPolicyTest::alterPermissionsProvider
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Session/SuperUserAccessPolicyTest.php \Drupal\Tests\Core\Session\SuperUserAccessPolicyTest::alterPermissionsProvider()
Data provider for testAlterPermissions.
Return value
array A list of test scenarios.
File
-
core/
tests/ Drupal/ Tests/ Core/ Session/ SuperUserAccessPolicyTest.php, line 125
Class
- SuperUserAccessPolicyTest
- @coversDefaultClass \Drupal\Core\Session\SuperUserAccessPolicy @group Session
Namespace
Drupal\Tests\Core\SessionCode
public static function alterPermissionsProvider() : array {
$cases['is-super-user'] = [
1,
];
$cases['is-normal-user'] = [
2,
];
return $cases;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.