public function TermResourceTestBase::providerTestGetTermWithParent in Drupal 9
Same name and namespace in other branches
- 8 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
Namespace
Drupal\Tests\taxonomy\Functional\RestCode
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,
],
],
];
}