From a31595513f6a840e34c10690d2b803620fc61bb7 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 19 Jul 2017 12:55:31 +0200 Subject: [PATCH] TASK: Reformat to follow CGL --- Classes/Validation/Validator/SettingsValidator.php | 7 ++++++- Tests/Functional/SettingsValidatorTest.php | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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'); } }