public function HierarchyNestedSetIntegrationTest::testNestedSetStorageSimpleUpdate in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/HierarchyNestedSetIntegrationTest.php \Drupal\Tests\entity_hierarchy\Kernel\HierarchyNestedSetIntegrationTest::testNestedSetStorageSimpleUpdate()
Tests saving with existing parent (no value change).
File
- tests/
src/ Kernel/ HierarchyNestedSetIntegrationTest.php, line 153
Class
- HierarchyNestedSetIntegrationTest
- Tests integration with entity_hierarchy.
Namespace
Drupal\Tests\entity_hierarchy\KernelCode
public function testNestedSetStorageSimpleUpdate() {
$child = $this
->createTestEntity($this->parent
->id());
$this
->assertSimpleParentChild($child);
$child
->save();
$this
->assertSimpleParentChild($child);
}