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

Skip to content

[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

Closed
wants to merge 2 commits into from

Conversation

HeahDude
Copy link
Contributor

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

Some tests are run twice because the SinglePlaceWorkflowValidatorTest extends the WorkflowTest, let's use a static function instead.

@HeahDude HeahDude changed the title [Workflow] Minor fix workflow [Workflow] Fixed some tests and cs Nov 13, 2016
{
/**
* @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();
Copy link
Contributor

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 :))

Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lyrixx
Copy link
Member

lyrixx commented Nov 15, 2016

@HeahDude Could you take time to finish this one, I want to merge it asap

@lyrixx
Copy link
Member

lyrixx commented Nov 17, 2016

Closing in favor of #20548

@lyrixx lyrixx closed this Nov 17, 2016
lyrixx added a commit that referenced this pull request Nov 17, 2016
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
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