From 49e5e7197296f2bb92681ce4787a3c4fbbb6686b Mon Sep 17 00:00:00 2001 From: Igor V Belousov Date: Wed, 10 Jun 2015 17:15:00 +0300 Subject: [PATCH] add three tests --- batch_test.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) 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