public function AccessResultTest::providerTestAllowedIfHasPermissions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Access/AccessResultTest.php \Drupal\Tests\Core\Access\AccessResultTest::providerTestAllowedIfHasPermissions()
Provides data for the testAllowedIfHasPermissions() method.
Return value
array
File
- core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php, line 885 - Contains \Drupal\Tests\Core\Access\AccessResultTest.
Class
- AccessResultTest
- @coversDefaultClass \Drupal\Core\Access\AccessResult @group Access
Namespace
Drupal\Tests\Core\AccessCode
public function providerTestAllowedIfHasPermissions() {
return [
[
[],
'AND',
AccessResult::allowedIf(FALSE),
],
[
[],
'OR',
AccessResult::allowedIf(FALSE),
],
[
[
'allowed',
],
'OR',
AccessResult::allowedIf(TRUE),
],
[
[
'allowed',
],
'AND',
AccessResult::allowedIf(TRUE),
],
[
[
'denied',
],
'OR',
AccessResult::allowedIf(FALSE),
],
[
[
'denied',
],
'AND',
AccessResult::allowedIf(FALSE),
],
[
[
'allowed',
'denied',
],
'OR',
AccessResult::allowedIf(TRUE),
],
[
[
'denied',
'allowed',
],
'OR',
AccessResult::allowedIf(TRUE),
],
[
[
'allowed',
'denied',
'other',
],
'OR',
AccessResult::allowedIf(TRUE),
],
[
[
'allowed',
'denied',
],
'AND',
AccessResult::allowedIf(FALSE),
],
];
}