You are here

public function AccessCheckTest::testIsAnyTaxonomyTermFieldDefinedInNodeType in Permissions by Term 8.2

File

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

Class

AccessCheckTest
Class AccessCheckTest

Namespace

Drupal\Tests\permissions_by_term\Kernel

Code

public function testIsAnyTaxonomyTermFieldDefinedInNodeType() : void {
  self::assertTrue($this->accessCheck
    ->isAnyTaxonomyTermFieldDefinedInNodeType('page'));
  $this
    ->createNoTaxonomyTermRelationNodeType();
  self::assertFalse($this->accessCheck
    ->isAnyTaxonomyTermFieldDefinedInNodeType('no_taxonomy_term_relation'));
}