You are here

public function TermTest::providerTestGetIndividualTermWithParent in Drupal 8

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

Data provider for ::testGetIndividualTermWithParent().

File

core/modules/jsonapi/tests/src/Functional/TermTest.php, line 455

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