protected function HierarchyNestedSetRevisionIntegrationTest::resaveParent in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/HierarchyNestedSetRevisionIntegrationTest.php \Drupal\Tests\entity_hierarchy\Kernel\HierarchyNestedSetRevisionIntegrationTest::resaveParent()
Re-saves the parent, with option to include new revision.
Overrides HierarchyNestedSetIntegrationTest::resaveParent
File
- tests/
src/ Kernel/ HierarchyNestedSetRevisionIntegrationTest.php, line 86
Class
- HierarchyNestedSetRevisionIntegrationTest
- Tests integration with entity_hierarchy and a revisionable entity.
Namespace
Drupal\Tests\entity_hierarchy\KernelCode
protected function resaveParent() {
$this->parent
->setNewRevision(TRUE);
$this->parent
->save();
$this->parentStub = $this->nodeFactory
->fromEntity($this->parent);
}