mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix normalization for person in docgen
This commit is contained in:
parent
0a92ad905b
commit
4d76de5f9f
@ -151,7 +151,7 @@ class PersonDocGenNormalizer implements
|
|||||||
$normalizer = new NormalizeNullValueHelper($this->normalizer, 'type', 'person');
|
$normalizer = new NormalizeNullValueHelper($this->normalizer, 'type', 'person');
|
||||||
|
|
||||||
$attributes = [
|
$attributes = [
|
||||||
'firstname', 'lastname', 'age', 'altNames', 'text',
|
'firstName', 'lastName', 'age', 'altNames', 'text',
|
||||||
'civility' => Civility::class,
|
'civility' => Civility::class,
|
||||||
'birthdate' => DateTimeInterface::class,
|
'birthdate' => DateTimeInterface::class,
|
||||||
'deathdate' => DateTimeInterface::class,
|
'deathdate' => DateTimeInterface::class,
|
||||||
|
@ -38,8 +38,8 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
|||||||
use ProphecyTrait;
|
use ProphecyTrait;
|
||||||
|
|
||||||
private const BLANK = [
|
private const BLANK = [
|
||||||
'firstname' => '',
|
'firstName' => '',
|
||||||
'lastname' => '',
|
'lastName' => '',
|
||||||
'altNames' => '',
|
'altNames' => '',
|
||||||
'text' => '',
|
'text' => '',
|
||||||
'isNull' => true,
|
'isNull' => true,
|
||||||
@ -80,7 +80,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
|
|||||||
|
|
||||||
$expected = array_merge(
|
$expected = array_merge(
|
||||||
self::BLANK,
|
self::BLANK,
|
||||||
['firstname' => 'Renaud', 'lastname' => 'Mégane',
|
['firstName' => 'Renaud', 'lastName' => 'Mégane',
|
||||||
'text' => 'Renaud Mégane', ]
|
'text' => 'Renaud Mégane', ]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user