$options['show_deprecated'
] = true;
yield [null,
$options, 'types_with_deprecated_options'
];
} public static function getDescribeResolvedFormTypeTestData() { $typeExtensions =
[new FormTypeCsrfExtension(new CsrfTokenManager())];
$parent =
new ResolvedFormType(new FormType(),
$typeExtensions);
yield [new ResolvedFormType(new ChoiceType(),
[],
$parent),
['decorated' => false, 'show_deprecated' => false
], 'resolved_form_type_1'
];
yield [new ResolvedFormType(new FormType()),
['decorated' => false, 'show_deprecated' => false
], 'resolved_form_type_2'
];
yield [new ResolvedFormType(new FooType(),
[],
$parent),
['decorated' => false, 'show_deprecated' => true
], 'deprecated_options_of_type'
];
} public static function getDescribeOptionTestData() { $parent =
new ResolvedFormType(new FormType());
$options['decorated'
] = false;
$options['show_deprecated'
] = false;
$resolvedType =
new ResolvedFormType(new ChoiceType(),
[],
$parent);
$options['type'
] =
$resolvedType->
getInnerType();
$options['option'
] = 'choice_translation_domain';