Skip to content

Commit

Permalink
update unit tests for batch group
Browse files Browse the repository at this point in the history
  • Loading branch information
rrennick committed Feb 25, 2019
1 parent a106e7e commit d5a466b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/batch-queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function test_queue_dependent_action() {
WC_Admin_Reports_Sync::set_queue( null );

// insert a blocking job.
WC_Admin_Reports_Sync::queue()->schedule_single( time(), 'blocking_job', array( 'stuff' ) );
WC_Admin_Reports_Sync::queue()->schedule_single( time(), 'blocking_job', array( 'stuff' ), WC_Admin_Reports_Sync::QUEUE_GROUP );
// queue an action that depends on blocking job.
WC_Admin_Reports_Sync::queue_dependent_action( 'dependent_action', array(), 'blocking_job' );
// verify that the action was properly blocked.
Expand Down

0 comments on commit d5a466b

Please sign in to comment.