10000 [Workflow] fix risky tests by xabbuh · Pull Request #22271 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Workflow] fix risky tests #22271

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

Merged
merged 1 commit into from
Apr 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loadi 10000 ng
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public function testValid()

(new StateMachineValidator())->validate($definition, 'foo');

// the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
$this->addToAssertionCount(1);

// The graph looks like:
//
// +----+ +----+ +---+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public function testSinglePlaceWorkflowValidatorAndSimpleWorkflow()
$definition = $this->createSimpleWorkflowDefinition();

(new WorkflowValidator(true))->validate($definition, 'foo');

// the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
$this->addToAssertionCount(1);
}

/**
Expand Down Expand Up @@ -60,5 +63,8 @@ public function testSameTransitionNameButNotSamePlace()
$definition = new Definition($places, $transitions);

(new WorkflowValidator())->validate($definition, 'foo');

// the test simply ensures that the validation does not fail (i.e. it does not throw any exceptions)
$this->addToAssertionCount(1);
}
}
0