1 => 'value6',
'key7' => 'value7',
],
];
$this->
assertSame($expect_value,
$data);
} /**
* Tests whether map data with properties can be normalized.
*/
public function testMapWithPropertiesNormalize() { $typed_data =
$this->
buildExampleTypedDataWithProperties();
$data =
$this->serializer->
normalize($typed_data, 'json'
);
$expect_value =
[ 'key1' => 'value1',
'key2' => 'value2',
'key3' => 3,
'key4' =>
[ 0 => TRUE,
1 => 'value6',
'key7' => 'value7',
],
];