Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[TwigBridge] Fix workflow test with deps=low#25458
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[TwigBridge] Fix workflow test with deps=low#25458
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedDec 12, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Should we plan to remove all the new |
Simperfit commentedDec 12, 2017 via email• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
we do not plan to remove but to update when we will update the Bridge touse the new features. but yeah I agree if we can update now let’s do it :) |
chalasr commentedDec 12, 2017
Keeping these legacy tests do not make sense to me either. |
Simperfit commentedDec 12, 2017 via email• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Oh, maybe we should add a condition like you said and instead of using theannotation use the method from phpunit ? |
chalasr commentedDec 12, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
IMO there is no deprecation to assert here. |
df5c849 to323168eCompareSimperfit commentedDec 12, 2017
We can remove the deprecation tag ;) |
| $registry =newRegistry(); | ||
| $registry->add($workflow,newInstanceOfSupportStrategy(\stdClass::class)); | ||
| $registry->{method_exists($registry,$_ ='addWorkflow') ?$_ :'add'}($workflow,newInstanceOfSupportStrategy(\stdClass::class)); |
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.
$addWorkflow = method_exists($registry, 'addWorkflow') ? 'addWorkflow' : 'add';
$registry->$addWorkflow($workflow, new InstanceOfSupportStrategy(\stdClass::class));
1cd637b to1586984Compare| $addWorkflow =method_exists($registry,'addWorkflow') ?'addWorkflow' :'add'; | ||
| $supportStrategy =class_exists('Symfony\Component\Workflow\SupportStrategy\InstanceOfSupportStrategy') | ||
| ?new \Symfony\Component\Workflow\SupportStrategy\InstanceOfSupportStrategy(\stdClass::class) | ||
| :new \Symfony\Component\Workflow\SupportStrategy\ClassInstanceSupportStrategy(\stdClass::class); |
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.
please keep using use statements :)
1586984 toe5c6b92CompareSimperfit commentedDec 12, 2017
🍾 it's green ! |
nicolas-grekas commentedDec 12, 2017
Thank you@Simperfit. |
This PR was merged into the 4.1-dev branch.Discussion----------[TwigBridge] Fix workflow test with deps=low| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass? | yes| Fixed tickets | none| License | MIT| Doc PR | noneIn the original PR the tests were not failling but we should not use the new feature with deps=low until it fetch the branch with the new feature. So this fix the test for the WorkflowExtension in TwigBridge.Commits-------e5c6b92 [TwigBridge] Fix workflow test with deps=low
Uh oh!
There was an error while loading.Please reload this page.
In the original PR the tests were not failling but we should not use the new feature with deps=low until it fetch the branch with the new feature. So this fix the test for the WorkflowExtension in TwigBridge.