Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[Zend\InputFilter\InputFilter] SetValidationGroup() VALIDATE_ALL not working recursively #5820

Closed
wants to merge 10 commits into from

Conversation

demichl68
Copy link
Contributor

According to this issue:
#5819

* Deploy reset validation groups recursively for "VALIDATE_ALL"
* Error handling for existing recursive validation group deployment
added test for recursively resetting validation group
added test for InvalidArgumentException on setting validation group on non-inputfilter
added test for recursively resetting validation group
added test for InvalidArgumentException on setting validation group on non-inputfilter
@samsonasik
Copy link
Contributor

travis build failure, you should fix the trailing_spaces.

updated tests for recursive setValidationGroup to VALIDATE_ALL
@demichl68
Copy link
Contributor Author

updated the test, sorry for that

removed trailing spaces
-Had my added test methods added twice. 
-Checked trailing spaces
@samsonasik
Copy link
Contributor

you need to use php-cs-fixer to do that,

php php-cs-fixer.phar fix /path/to/file.php --fixers=trailing_spaces

@demichl68
Copy link
Contributor Author

What an odyssey! Hope its ok now ...

}

/**
* @expectedException Zend\InputFilter\Exception\InvalidArgumentException
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer use setExpectedException just before to call the method which should throw the exception. By this way we avoid false oks if any line before throws the same exception but for a different reason.

Moved the expected exception assertion from annotation to method body
@weierophinney weierophinney added this to the 2.2.6 milestone Mar 3, 2014
@weierophinney weierophinney self-assigned this Mar 4, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
[Zend\InputFilter\InputFilter] SetValidationGroup() VALIDATE_ALL not working recursively
weierophinney added a commit that referenced this pull request Mar 4, 2014
- space between conditional and operator
weierophinney added a commit that referenced this pull request Mar 4, 2014
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
…ster

[Zend\InputFilter\InputFilter] SetValidationGroup() VALIDATE_ALL not working recursively
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
- space between conditional and operator
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants