-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix unit tests #6168
Fix unit tests #6168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why it started to fail now ?
Because the widget test case on 1.x of Sonata Form have different signature. |
This cannot be fixed like this, because on 0.x it have the older signature, and the prefer lowest build will fail |
There is also an error
|
And there is another problem:
That one is easy tho. |
I think you can add return type without any issue. |
42217a9
to
c64f0a1
Compare
The question was why the test were working like 4 days ago and not now. |
de19b5a
to
3504102
Compare
Unfortunately, i could not fix all the errors. Any ideas how to fix this?
|
It is happening on functional test? you may need to register sonataTwigBundle |
3504102
to
6f1e419
Compare
The last problem remains
|
This line is the problem, it has one ../ that need to be removed and released |
@peter-gribanov sonata-project/form-extensions#101 Does it fix the last build? |
@jordisala1991 Yes. This solves the problem. |
not test Exporter if not Sonata\CoreBundle\Exporter\Exporter not test ChoiceTypeExtension if no SonataCoreBundle remove SonataCoreBundle from AppKernel if it is not exists register SonataFormBundle and SonataTwigBundle in AppKernel add ChoiceTypeExtensionTest::$factory property fix ChoiceTypeExtensionTest
6f1e419
to
1e40f92
Compare
Thanks a lot @peter-gribanov ! |
Subject
Unit tests is broken. Apparently after updating the SonataCoreBundle.
AbstractWidgetTestCase::getEnvironment()
AbstractWidgetTestCase::getRenderingEngine()
AbstractWidgetTestCase::getTemplatePaths()
Changelog