public function TermTest::providerTestGetIndividualTermWithParent in JSON:API 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::providerTestGetIndividualTermWithParent()
Data provider for ::testGetIndividualTermWithParent().
File
- tests/
src/ Functional/ TermTest.php, line 477
Class
- TermTest
- JSON:API integration test for the "Term" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
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,
],
],
];
}