You are here

protected function StateFlowSPSIntegrationWebTest::addValuesToSchedule in State Machine 7.2

Add values to the state_flow_schedule table.

Parameters

$values - an array of data with fields:: nid, vid, date

1 call to StateFlowSPSIntegrationWebTest::addValuesToSchedule()
StateFlowSPSIntegrationWebTest::testStateFlowBasicTableData in modules/state_flow_sps/tests/StateFlowSPSIntegrationWeb.test

File

modules/state_flow_sps/tests/StateFlowSPSIntegrationWeb.test, line 59

Class

StateFlowSPSIntegrationWebTest

Code

protected function addValuesToSchedule($values) {
  $insert = db_insert('state_flow_schedule')
    ->fields(array(
    'nid',
    'vid',
    'date',
  ));
  foreach ($values as $item) {
    $insert
      ->values($item);
  }
  $insert
    ->execute();
}