_simpletest_batch_finished

Definition

_simpletest_batch_finished($success, $results, $operations)
modules/simpletest/simpletest.module, line 431

Code

<?php
function _simpletest_batch_finished($success, $results, $operations) {
  if (isset($results['test_id'])) {
    $_SESSION['test_id'] = $results['test_id'];
  }
  if ($success) {
    drupal_set_message(t('The tests have finished running.'));
  }
  else {
    drupal_set_message(t('The tests did not successfully finish.'), 'error');
  }
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.