Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Validator] BicValidator - fixed raising violations to a maximum of one #16806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2015
Merged

[Validator] BicValidator - fixed raising violations to a maximum of one #16806

merged 1 commit into from
Dec 18, 2015

Conversation

mvhirsch
Copy link
Contributor

@mvhirsch mvhirsch commented Dec 2, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR none

I just found a bug while using the constraint. For example my value "a" will raise three violations at one time. I just expected to get a maximum number of one.
This PR will fix that behavior.

I do not know how I can easily add Unit-Tests for that, can someone please help me?

@jakzal
Copy link
Contributor

jakzal commented Dec 9, 2015

@mvhirsch to test this add your test case to the list in theSymfony\Component\Validator\Tests\Constraints\BicValidatorTest::getInvalidBics() method

@fabpot
Copy link
Member

fabpot commented Dec 18, 2015

Thank you @mvhirsch.

@fabpot fabpot merged commit 7860bb4 into symfony:2.8 Dec 18, 2015
fabpot added a commit that referenced this pull request Dec 18, 2015
…aximum of one (mvhirsch)

This PR was merged into the 2.8 branch.

Discussion
----------

[Validator] BicValidator - fixed raising violations to a maximum of one

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

I just found a bug while using the constraint. For example my value "a" will raise three violations at one time. I just expected to get a maximum number of one.
This PR will fix that behavior.

I do not know how I can easily add Unit-Tests for that, can someone please help me?

Commits
-------

7860bb4 [Validator] fixed raising violations to a maximum of one
This was referenced Dec 26, 2015
@mvhirsch mvhirsch deleted the fix_bic_validation branch July 4, 2017 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants