protected function WorkspaceResourceTestBase::getNormalizedPatchEntity in Workspace 8.2
Returns the normalized PATCH entity.
By default, reuses ::getNormalizedPostEntity(), which works fine for most entity types. A counterexample: the 'comment' entity type.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPatchEntity
See also
::testPatch
File
- tests/
src/ Functional/ EntityResource/ WorkspaceResourceTestBase.php, line 170
Class
- WorkspaceResourceTestBase
- Base class for workspace EntityResource tests.
Namespace
Drupal\Tests\workspace\Functional\EntityResourceCode
protected function getNormalizedPatchEntity() {
return [
'label' => [
[
'value' => 'Running on faith',
],
],
'target' => [
[
'value' => 'local_workspace:stage',
],
],
];
}