function TermResourceTestBase::providerTestGetTermWithParent
Data provider for ::testGetTermWithParent().
File
- 
              core/modules/ taxonomy/ tests/ src/ Functional/ Rest/ TermResourceTestBase.php, line 381 
Class
- TermResourceTestBase
- Resource test base for taxonomy term entity.
Namespace
Drupal\Tests\taxonomy\Functional\RestCode
public static function providerTestGetTermWithParent() {
  return [
    'root parent: [0] (= no parent)' => [
      [
        0,
      ],
    ],
    'non-root parent: [2]' => [
      [
        2,
      ],
    ],
    'multiple parents: [0,2] (root + non-root parent)' => [
      [
        0,
        2,
      ],
    ],
    'multiple parents: [3,2] (both non-root parents)' => [
      [
        3,
        2,
      ],
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
