public function BambooTwigSecurityTest::testHasNotPermissions 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::testHasNotPermissions()
@covers Drupal\bamboo_twig_security\TwigExtension\Security::hasPermissions
File
- tests/
src/ Kernel/ BambooTwigSecurityTest.php, line 81
Class
- BambooTwigSecurityTest
- Tests Security twig filters and functions.
Namespace
Drupal\Tests\bamboo_twig\KernelCode
public function testHasNotPermissions() {
$result = $this->securityExtension
->hasPermissions([
'bypass node access',
], 'OR', 2);
$this
->assertFalse($result);
}