You are here

public function HierarchyNestedSetIntegrationTest::testNestedSetStorageSimple 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::testNestedSetStorageSimple()

Tests simple storage in nested set tables.

File

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

Class

HierarchyNestedSetIntegrationTest
Tests integration with entity_hierarchy.

Namespace

Drupal\Tests\entity_hierarchy\Kernel

Code

public function testNestedSetStorageSimple() {
  $child = $this
    ->createTestEntity($this->parent
    ->id());
  $this
    ->assertSimpleParentChild($child);
}