You are here

function simpletest_test_install in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install \simpletest_test_install()

Implements hook_install().

File

core/modules/simpletest/tests/modules/simpletest_test/simpletest_test.install, line 6

Code

function simpletest_test_install() {
  $total = 2;
  $operations = array();
  for ($i = 1; $i <= $total; $i++) {
    $operations[] = array(
      '_simpletest_test_callback',
      array(
        $i,
      ),
    );
  }
  $batch = array(
    'operations' => $operations,
  );
  batch_set($batch);
  $batch =& batch_get();
  $batch['progressive'] = FALSE;
  batch_process();
}