You are here

public function TermTest::providerTestGetIndividualTermWithParent in JSON:API 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::providerTestGetIndividualTermWithParent()

Data provider for ::testGetIndividualTermWithParent().

File

tests/src/Functional/TermTest.php, line 488

Class

TermTest
JSON API integration test for the "Term" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function providerTestGetIndividualTermWithParent() {
  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,
      ],
    ],
  ];
}