// No type.
$data_with_no_type = [
- '_links' => [
- ],
+ '_links' => [],
];
try {
$this->serializer->denormalize($data_with_no_type, $this->entityClass, $this->format);
],
'field_test_text' => [],
];
- $entity = $this->serializer->denormalize($data, get_class($entity), $this->format, [ 'target_instance' => $entity ]);
+ $entity = $this->serializer->denormalize($data, get_class($entity), $this->format, ['target_instance' => $entity]);
$this->assertEqual($entity->field_test_text->count(), 0);
}