-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Workflow] Fixed some tests and cs #20507
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
{ | ||
/** | ||
* @expectedException \Symfony\Component\Workflow\Exception\InvalidDefinitionException | ||
* @expectedExceptionMessage The marking store of workflow "foo" can not store many places. | ||
*/ | ||
public function testSinglePlaceWorkflowValidatorAndComplexWorkflow() | ||
{ | ||
$definition = $this->createComplexWorkflow(); | ||
$definition = WorkflowTest::createComplexWorkflow(); |
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.
Maybe just create a minimal workflow here. I thought of this as well for #20492 but i forgot :))
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.
👍
{ | ||
/** | ||
* @expectedException \Symfony\Component\Workflow\Exception\InvalidDefinitionException | ||
* @expectedExceptionMessage The marking store of workflow "foo" can not store many places. | ||
*/ | ||
public function testSinglePlaceWorkflowValidatorAndComplexWorkflow() | ||
{ | ||
$definition = $this->createComplexWorkflow(); | ||
$definition = WorkflowTest::createComplexWorkflow(); |
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.
👍
@HeahDude Could you take time to finish this one, I want to merge it asap |
Closing in favor of #20548 |
This PR was merged into the 3.2-dev branch. Discussion ---------- [Workflow] Refactored test suite | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20507 | License | MIT | Doc PR | - Commits ------- cef6f31 [Workflow] Refactored tests suite 3ee876b [Workflow] Fixed validator tests and used static function to create workflows
Some tests are run twice because the
SinglePlaceWorkflowValidatorTest
extends theWorkflowTest
, let's use a static function instead.