diff --git a/batch_test.php b/batch_test.php index c7a4f23..2978074 100644 --- a/batch_test.php +++ b/batch_test.php @@ -49,6 +49,26 @@ function batch_operations_test_page_view() { batch_operations_start($batch); break; + case 6: + $batch['operations'][]=array('test_batch_operation_context_finished',array()); + $batch['operations'][]=array('test_batch_operation',array()); + $batch['operations'][]=array('test_batch_operation',array()); + batch_operations_start($batch); + break; + + case 7: + $batch['operations'][]=array('test_batch_operation_params',array('a',1)); + $batch['operations'][]=array('test_batch_operation_params',array('b',2)); + $batch['operations'][]=array('test_batch_operation_params',array('c',3)); + batch_operations_start($batch); + break; + + case 8: + $batch['operations'][]=array(array('TestBatch','Operations'),array()); + $batch['operations'][]=array(array('TestBatch','Operations'),array()); + batch_operations_start($batch); + break; + default: break; } @@ -63,12 +83,45 @@ function batch_operations_test_page_view() {
  • Set custom title & custom init_message
  • 5 operations default progress_message
  • 5 operations custom progress_message +
  • Test $context['finished'] +
  • Test params +
  • Test operations in class