[Workflow] fix risky tests

This commit is contained in:
Christian Flothmann 2017-04-04 11:53:57 +02:00
parent 924337fcb0
commit 4e661e7a73
2 changed files with 9 additions and 0 deletions

View File

@ -94,6 +94,9 @@ class StateMachineValidatorTest extends TestCase
(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:
//
// +----+ +----+ +---+

View File

@ -28,6 +28,9 @@ class WorkflowValidatorTest extends TestCase
$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);
}
/**
@ -60,5 +63,8 @@ class WorkflowValidatorTest extends TestCase
$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);
}
}