static::
assertFalse($this->serializer->
supports('not_order'
));
} /**
* @dataProvider serializeDataProvider
*
* @param array<mixed>|Struct|null $entity
* @param array<mixed> $expected
*/
public function testSerialize($entity, array
$expected): void
{ $logEntity =
new ImportExportLogEntity();
$logEntity->
setId(Uuid::
randomHex());
$config = Config::
fromLog($logEntity);
$definition =
new OrderDefinition();
$definition->
compile($this->
createMock(DefinitionInstanceRegistry::
class));
$result =
iterator_to_array($this->serializer->
serialize($config,
$definition,
$entity));
static::
assertEquals($expected,
$result);
} /**
* @return iterable<string, array{entity: Struct|array<mixed>|null, expected: array<string, mixed>}>
*/