public function BambooTwigSecurityTest::testHasPermissionsInvalidConjunction in Bamboo Twig 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/BambooTwigSecurityTest.php \Drupal\Tests\bamboo_twig\Kernel\BambooTwigSecurityTest::testHasPermissionsInvalidConjunction()
@covers Drupal\bamboo_twig_security\TwigExtension\Security::hasPermissions
File
- tests/
src/ Kernel/ BambooTwigSecurityTest.php, line 105
Class
- BambooTwigSecurityTest
- Tests Security twig filters and functions.
Namespace
Drupal\Tests\bamboo_twig\KernelCode
public function testHasPermissionsInvalidConjunction() {
$this
->setExpectedException(\InvalidArgumentException::class, 'Invalid conjunction type "XOR".');
$result = $this->securityExtension
->hasPermissions([
'bypass node access',
], 'XOR', 1);
}