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() {
$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.'));
}