You are here

public function EntityReferenceDependencyManagerTest::testGetDependentEntityIds in Entity Reference Integrity 8

Test the reference list method.

@covers ::getDependentEntityIds

File

tests/src/Kernel/EntityReferenceDependencyManagerTest.php, line 99

Class

EntityReferenceDependencyManagerTest
Test the EntityReferenceDependencyManager.

Namespace

Drupal\Tests\entity_reference_integrity\Kernel

Code

public function testGetDependentEntityIds() {
  $this
    ->assertEquals([], $this->dependencyManager
    ->getDependentEntityIds($this->testUser));
  $this
    ->setUserAsNodeAuthor();
  $this
    ->assertEquals($this->testNode
    ->id(), $this->dependencyManager
    ->getDependentEntityIds($this->testUser)['node'][0]);
}