projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-full-immediately.php 1 location
|
@@ 221-223 (lines=3) @@
|
218 |
|
function test_full_sync_sends_all_terms_with_previous_interval_end() { |
219 |
|
Settings::update_settings( array( 'max_full_sync_terms' => 1 ) ); |
220 |
|
|
221 |
|
for ( $i = 0; $i < 25; $i += 1 ) { |
222 |
|
wp_insert_term( 'term' . $i, 'post_tag' ); |
223 |
|
} |
224 |
|
|
225 |
|
// The first event is for full sync start. |
226 |
|
$this->full_sync->start( array( 'terms' => true ) ); |
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-full.php 1 location
|
@@ 247-249 (lines=3) @@
|
244 |
|
function test_full_sync_sends_all_terms_with_previous_interval_end() { |
245 |
|
Settings::update_settings( array( 'max_queue_size_full_sync' => 1, 'max_enqueue_full_sync' => 10 ) ); |
246 |
|
|
247 |
|
for ( $i = 0; $i < 25; $i += 1 ) { |
248 |
|
wp_insert_term( 'term' . $i, 'post_tag' ); |
249 |
|
} |
250 |
|
|
251 |
|
// The first event is for full sync start. |
252 |
|
$this->full_sync->start( array( 'terms' => true ) ); |