You are here

protected function HierarchyNestedSetIntegrationTest::resaveParent in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/HierarchyNestedSetIntegrationTest.php \Drupal\Tests\entity_hierarchy\Kernel\HierarchyNestedSetIntegrationTest::resaveParent()

Re-saves the parent, with option to include new revision.

1 call to HierarchyNestedSetIntegrationTest::resaveParent()
HierarchyNestedSetIntegrationTest::testNestedSetResaveParent in tests/src/Kernel/HierarchyNestedSetIntegrationTest.php
Test saving the parent after adding children.
1 method overrides HierarchyNestedSetIntegrationTest::resaveParent()
HierarchyNestedSetRevisionIntegrationTest::resaveParent in tests/src/Kernel/HierarchyNestedSetRevisionIntegrationTest.php
Re-saves the parent, with option to include new revision.

File

tests/src/Kernel/HierarchyNestedSetIntegrationTest.php, line 295

Class

HierarchyNestedSetIntegrationTest
Tests integration with entity_hierarchy.

Namespace

Drupal\Tests\entity_hierarchy\Kernel

Code

protected function resaveParent() {
  $this->parent
    ->save();
  $this->parentStub = $this->nodeFactory
    ->fromEntity($this->parent);
}