You are here

public function AccessCheckTest::testCheckAccessAsGuest in Permissions by Term 8

File

tests/src/Kernel/AccessCheckTest.php, line 160

Class

AccessCheckTest
Class AccessCheckTest

Namespace

Drupal\Tests\permissions_by_term\Kernel

Code

public function testCheckAccessAsGuest() {
  $term = Term::create([
    'name' => 'term1',
    'vid' => 'test',
  ]);
  $term
    ->save();
  $this->accessCheck
    ->isAccessAllowedByDatabase($term
    ->id(), 0);
}