protected function WorkspaceResourceTestBase::getNormalizedPostEntity in Workspace 8.2
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
See also
::testPost
1 call to WorkspaceResourceTestBase::getNormalizedPostEntity()
- WorkspaceResourceTestBase::getSecondNormalizedPostEntity in tests/
src/ Functional/ EntityResource/ WorkspaceResourceTestBase.php - Gets the second normalized POST entity.
File
- tests/
src/ Functional/ EntityResource/ WorkspaceResourceTestBase.php, line 137
Class
- WorkspaceResourceTestBase
- Base class for workspace EntityResource tests.
Namespace
Drupal\Tests\workspace\Functional\EntityResourceCode
protected function getNormalizedPostEntity() {
return [
'id' => [
[
'value' => static::$firstCreatedEntityId,
],
],
'label' => [
[
'value' => 'Running on faith',
],
],
'target' => [
[
'value' => 'local_workspace:stage',
],
],
];
}