function TermResourceTestBase::providerTestGetTermWithParent

Same name in other branches
  1. 9 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::providerTestGetTermWithParent()
  2. 10 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::providerTestGetTermWithParent()
  3. 11.x 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 359

Class

TermResourceTestBase

Namespace

Drupal\Tests\taxonomy\Functional\Rest

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.