You are here

public function BambooTwigSecurityTest::testHasNotPermissions in Bamboo Twig 8.5

Same name and namespace in other branches
  1. 8.4 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 80

Class

BambooTwigSecurityTest
Tests Security twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Kernel

Code

public function testHasNotPermissions() {
  $result = $this->securityExtension
    ->hasPermissions([
    'bypass node access',
  ], 'OR', 2);
  $this
    ->assertFalse($result);
}