diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 08a98d0..1db1d4c 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -50,7 +50,12 @@ class SettingsValidator extends AbstractValidator */ protected $supportedOptions = [ 'name' => ['', 'Set the name of the setting-array to use', 'string', false], - 'validationGroups' => [['Default'], 'Same as "Validation Groups" of Flow Framework.', 'array', false], + 'validationGroups' => [ + ['Default'], + 'Same as "Validation Groups" of Flow Framework. Defines the groups to execute.', + 'array', + false + ], ]; /** diff --git a/Tests/Functional/SettingsValidatorTest.php b/Tests/Functional/SettingsValidatorTest.php index 1d2a285..813c171 100644 --- a/Tests/Functional/SettingsValidatorTest.php +++ b/Tests/Functional/SettingsValidatorTest.php @@ -43,7 +43,7 @@ class SettingsValidatorTest extends FunctionalTestCase $result = $validator->validate(new TestValidationGroupsDefaultObject()); $this->assertTrue($result->hasErrors(), 'No Errors for validation group "Default"'); $this->assertCount(1, $result->getFlattenedErrors(), 'Got a non expected number of errors for group "Default"'); - $this->assertCount(1, $result->forProperty('shouldBeTrue')->getErrors(), 'Got no error for shouldBeTrue property'); + $this->assertCount(1, $result->forProperty('shouldBeTrue')->getErrors(), 'Got no error for property'); } /** @@ -55,6 +55,6 @@ class SettingsValidatorTest extends FunctionalTestCase $result = $validator->validate(new TestValidationGroupsCustomObject()); $this->assertTrue($result->hasErrors(), 'No Errors for validation group "Custom"'); $this->assertCount(1, $result->getFlattenedErrors(), 'Got a non expected number of errors for group "Custom"'); - $this->assertCount(1, $result->forProperty('shouldBeFalse')->getErrors(), 'Got no error for shouldBeFalse property'); + $this->assertCount(1, $result->forProperty('shouldBeFalse')->getErrors(), 'Got no error for property'); } }