function NodeResourceTestBase::getNormalizedPostEntity

Same name in other branches
  1. 8.9.x core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getNormalizedPostEntity()
  2. 10 core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getNormalizedPostEntity()
  3. 11.x core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php \Drupal\Tests\node\Functional\Rest\NodeResourceTestBase::getNormalizedPostEntity()

Overrides EntityResourceTestBase::getNormalizedPostEntity

1 call to NodeResourceTestBase::getNormalizedPostEntity()
NodeHalJsonAnonTest::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/node/NodeHalJsonAnonTest.php
Returns the normalized POST entity.
1 method overrides NodeResourceTestBase::getNormalizedPostEntity()
NodeHalJsonAnonTest::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/node/NodeHalJsonAnonTest.php
Returns the normalized POST entity.

File

core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php, line 199

Class

NodeResourceTestBase

Namespace

Drupal\Tests\node\Functional\Rest

Code

protected function getNormalizedPostEntity() {
    return [
        'type' => [
            [
                'target_id' => 'camelids',
            ],
        ],
        'title' => [
            [
                'value' => 'Dramallama',
            ],
        ],
    ];
}

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