You are here

public function StateFlowWebTestCase::setup in State Machine 7.3

File

modules/state_flow/tests/state_flow.test, line 22
state_flow.test

Class

StateFlowWebTestCase
Unit tests for the StateFlow revision state machine.

Code

public function setup() {
  parent::setup('state_machine', 'state_flow', 'state_flow_entity', 'views', 'drafty');

  // Create a revision for nodes by default.
  foreach (array(
    'page',
    'article',
  ) as $node_type) {
    $node_options = variable_get('node_options_' . $node_type, array(
      'status',
      'promote',
    ));
    $node_options[] = 'revision';
    variable_set('node_options_' . $node_type, $node_options);
  }
  $this
    ->stateFlowLoginAdmin();
}