public function WorkflowExampleTestCase::testWorkflow in Workflow 7
Same name and namespace in other branches
- 7.2 includes/Test/WorkflowUnitTest.test \WorkflowExampleTestCase::testWorkflow()
File
- includes/
Test/ WorkflowUnitTest.test, line 26 - Contains workflow\lib\entity\WorkflowUnitTest.
Class
- WorkflowExampleTestCase
- Tests for the Workflow classes.
Code
public function testWorkflow() {
// $workflows = Workflow::getWorkflows();
// dpm($workflows, "These are the current Workflows in the system.");
$wid = 1;
$workflow = Workflow::load($wid);
$this
->assertEqual($workflow->wid, $wid, t('The wid of the Workflow should be the same as we decided.'));
$workflow = new Workflow($wid);
$this
->assertEqual($workflow->wid, $wid, t('The wid of the Workflow should be the same as we decided.'));
// $creation_state = $workflow->getCreationState();
// $this->assertEqual($creation_state, 1, t('The creation_state of wid 1 has value 1.'));
}