You are here

public function AccessStorageTest::testTidsByNidRetrieval in Permissions by Term 8.2

File

tests/src/Kernel/AccessStorageTest.php, line 112

Class

AccessStorageTest
@group permissions_by_term

Namespace

Drupal\Tests\permissions_by_term\Kernel

Code

public function testTidsByNidRetrieval() {
  $this
    ->createRelationOneGrantedTerm();

  /**
   * @var TermHandler $termHandler
   */
  $termHandler = \Drupal::service('permissions_by_term.term_handler');
  self::assertCount(3, $termHandler
    ->getTidsByNid('1'));
  self::assertNull($termHandler
    ->getTidsByNid('99'));
}