[TASK] Add form framework RequiredValidatorEditor test 16/57716/2
authorOliver Hader <oliver@typo3.org>
Sun, 29 Jul 2018 09:37:44 +0000 (11:37 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 29 Jul 2018 12:40:04 +0000 (14:40 +0200)
Resolves: #85673
Related: #85608
Releases: master, 8.7
Change-Id: If351dd316c628450e09e579d0cccbe7a7cefe213
Reviewed-on: https://review.typo3.org/57716
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Tests/Unit/Domain/Configuration/ConfigurationServiceTest.php

index 9bea353..035a9fc 100644 (file)
@@ -1079,6 +1079,15 @@ class ConfigurationServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTes
                                         'templateName' => 'Inspector-ValidationErrorMessageEditor',
                                         'propertyPath' => 'properties.foo.3',
                                     ],
+                                    [
+                                        'templateName' => 'Inspector-RequiredValidatorEditor',
+                                        'propertyPath' => 'properties.fluidAdditionalAttributes.required',
+                                        'configurationOptions' => [
+                                            'validationErrorMessage' => [
+                                                'propertyPath' => 'properties.validationErrorMessages',
+                                            ],
+                                        ],
+                                    ],
                                 ],
                             ],
                         ],
@@ -1092,11 +1101,14 @@ class ConfigurationServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTes
                                 'defaultValue',
                                 'properties.foo.2',
                                 'properties.foo.3',
+                                'properties.validationErrorMessages',
                             ],
                             'propertyPaths' => [
                                 'properties.foo.1',
                                 'properties.foo.2',
                                 'properties.foo.3',
+                                'properties.fluidAdditionalAttributes.required',
+                                'properties.validationErrorMessages',
                             ],
                         ],
                     ],