You are here

public function TermResourceTestBase::providerTestGetTermWithParent in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::providerTestGetTermWithParent()
  2. 9 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::providerTestGetTermWithParent()

File

core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php, line 360

Class

TermResourceTestBase

Namespace

Drupal\Tests\taxonomy\Functional\Rest

Code

public 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,
      ],
    ],
  ];
}