Issue #2942522 by Wim Leers: Follow-up for #2543726: remove work-around in POST test coverage for bug in Term entity type that has been fixed
parent
3c43071ab7
commit
678a4c8029
|
@ -906,11 +906,7 @@ abstract class EntityResourceTestBase extends ResourceTestBase {
|
|||
// contains the serialized created entity.
|
||||
$created_entity = $this->entityStorage->loadUnchanged(static::$firstCreatedEntityId);
|
||||
$created_entity_normalization = $this->serializer->normalize($created_entity, static::$format, ['account' => $this->account]);
|
||||
// @todo Remove this if-test in https://www.drupal.org/node/2543726: execute
|
||||
// its body unconditionally.
|
||||
if (static::$entityTypeId !== 'taxonomy_term') {
|
||||
$this->assertSame($created_entity_normalization, $this->serializer->decode((string) $response->getBody(), static::$format));
|
||||
}
|
||||
$this->assertSame($created_entity_normalization, $this->serializer->decode((string) $response->getBody(), static::$format));
|
||||
// Assert that the entity was indeed created using the POSTed values.
|
||||
foreach ($this->getNormalizedPostEntity() as $field_name => $field_normalization) {
|
||||
// Some top-level keys in the normalization may not be fields on the
|
||||
|
|
Loading…
Reference in New Issue