public function AccessCheckTest::testCheckAccessAsGuestWithNoTermRestriction in Permissions by Term 8.2
File
- tests/
src/ Kernel/ AccessCheckTest.php, line 118
Class
- AccessCheckTest
- Class AccessCheckTest
Namespace
Drupal\Tests\permissions_by_term\KernelCode
public function testCheckAccessAsGuestWithNoTermRestriction() : void {
$term = Term::create([
'name' => 'term1',
'vid' => 'test',
]);
$term
->save();
self::assertTrue($this->accessCheck
->isAccessAllowedByDatabase($term
->id(), 0));
}