function WorkspaceTest::getPostDocument

Same name in other branches
  1. 11.x core/modules/jsonapi/tests/src/Functional/WorkspaceTest.php \Drupal\Tests\jsonapi\Functional\WorkspaceTest::getPostDocument()

Overrides ResourceTestBase::getPostDocument

File

core/modules/jsonapi/tests/src/Functional/WorkspaceTest.php, line 184

Class

WorkspaceTest
JSON:API integration test for the "Workspace" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected function getPostDocument() : array {
    return [
        'data' => [
            'type' => static::$resourceTypeName,
            'attributes' => [
                'drupal_internal__id' => 'autumn_campaign',
                'label' => 'Autumn campaign',
            ],
        ],
    ];
}

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