You are here

public function WorkflowExampleTestCase::testWorkflow in Workflow 7.2

Same name and namespace in other branches
  1. 7 includes/Test/WorkflowUnitTest.test \WorkflowExampleTestCase::testWorkflow()

Creates a simpletest_example node using the node form.

File

includes/Test/WorkflowUnitTest.test, line 28
Contains workflow\lib\entity\WorkflowUnitTest.

Class

WorkflowExampleTestCase
Tests for the Workflow classes.

Code

public function testWorkflow() {

  //    $workflows = workflow_load_multiple();
  //    dpm($workflows, "These are the current Workflows in the system.");
  $wid = 1;
  $workflow = workflow_load_single($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.'));
}