public function EntityReferenceDependencyManagerTest::testGetDependentEntities in Entity Reference Integrity 8
Test the reference list method.
@covers ::getDependentEntities
File
- tests/
src/ Kernel/ EntityReferenceDependencyManagerTest.php, line 110
Class
- EntityReferenceDependencyManagerTest
- Test the EntityReferenceDependencyManager.
Namespace
Drupal\Tests\entity_reference_integrity\KernelCode
public function testGetDependentEntities() {
$this
->assertEquals([], $this->dependencyManager
->getDependentEntities($this->testUser));
$this
->setUserAsNodeAuthor();
$this
->assertEquals($this->testNode
->id(), $this->dependencyManager
->getDependentEntities($this->testUser)['node'][0]
->id());
}