function NodeTest::getIncludePermissions

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::getIncludePermissions()
  2. 10 core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::getIncludePermissions()
  3. 11.x core/modules/jsonapi/tests/src/Functional/NodeTest.php \Drupal\Tests\jsonapi\Functional\NodeTest::getIncludePermissions()

Overrides ResourceTestBase::getIncludePermissions

File

core/modules/jsonapi/tests/src/Functional/NodeTest.php, line 422

Class

NodeTest
JSON:API integration test for the "Node" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static function getIncludePermissions() {
    return [
        'uid.node_type' => [
            'administer users',
        ],
        'uid.roles' => [
            'administer permissions',
        ],
    ];
}

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