protected function EntityReferenceDependencyManagerTest::setUserAsNodeAuthor in Entity Reference Integrity 8
Test the test user as the author of the test node.
3 calls to EntityReferenceDependencyManagerTest::setUserAsNodeAuthor()
- EntityReferenceDependencyManagerTest::testGetDependentEntities in tests/src/ Kernel/ EntityReferenceDependencyManagerTest.php 
- Test the reference list method.
- EntityReferenceDependencyManagerTest::testGetDependentEntityIds in tests/src/ Kernel/ EntityReferenceDependencyManagerTest.php 
- Test the reference list method.
- EntityReferenceDependencyManagerTest::testHasDependents in tests/src/ Kernel/ EntityReferenceDependencyManagerTest.php 
- Test the reference check method.
File
- tests/src/ Kernel/ EntityReferenceDependencyManagerTest.php, line 78 
Class
- EntityReferenceDependencyManagerTest
- Test the EntityReferenceDependencyManager.
Namespace
Drupal\Tests\entity_reference_integrity\KernelCode
protected function setUserAsNodeAuthor() {
  $this->testNode->uid = $this->testUser
    ->id();
  $this->testNode
    ->save();
}