-
-
Notifications
You must be signed in to change notification settings - Fork 2k
T15567 Form entity not passed with validation #15568
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
Conversation
@stijn1989 Could you write a test case with scenario that you described in a changelog? |
What do you mean by testcase? A unit test or a real life example? I provided an example in the issue. |
Unit test |
Unit test is added to the branch. |
@stijn1989 Your test is failing, could you please check? |
Yeah I'm not great in writing tests. I forgot to create a DI container in the test. |
Pass the form entity to validation if no entity is provided with the isValid method.
Syntax error
create factory default DI
Refs [#atch]
Refs [#atch]
Thank you @stijn1989 |
In raising this pull request, I confirm the following:
Assign the form entity to the entity variable in the isValid method if no entity is provided.