function TermTest::providerTestGetIndividualTermWithParent
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::providerTestGetIndividualTermWithParent()
- 8.9.x core/modules/jsonapi/tests/src/Functional/TermTest.php \Drupal\Tests\jsonapi\Functional\TermTest::providerTestGetIndividualTermWithParent()
- 10 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 488
Class
- TermTest
- JSON:API integration test for the "Term" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public static 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,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.