class FlowTemplateConfigFieldSerializerTest extends TestCase
{ private FlowTemplateConfigFieldSerializer
$serializer;
protected function setUp(): void
{ parent::
setUp();
$validator = Validation::
createValidatorBuilder()->
enableAnnotationMapping()->
getValidator();
$definitionRegistry =
$this->
createMock(DefinitionInstanceRegistry::
class);
$this->serializer =
new FlowTemplateConfigFieldSerializer($validator,
$definitionRegistry);
} public function testSerializeWithInvalidConfigArray(): void
{ static::
expectException(WriteConstraintViolationException::
class);
$this->
encode([ 'eventName' => 111,
'description' => 'description test',
'sequences' =>
[],
]);
}