Code Duplication    Length = 4-4 lines in 3 locations

projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-full-immediately.php 1 location

@@ 255-258 (lines=4) @@
252
253
		$post_ids = $this->factory->post->create_many( 20 );
254
255
		foreach ( $post_ids as $post_id ) {
256
			wp_set_object_terms( $post_id, array( 'cat1', 'cat2', 'cat3' ), 'category', true );
257
			wp_set_object_terms( $post_id, array( 'tag1', 'tag2', 'tag3' ), 'post_tag', true );
258
		}
259
260
		$original_number_of_term_relationships = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->term_relationships" );
261

projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-full.php 2 locations

@@ 294-297 (lines=4) @@
291
292
		$post_ids = $this->factory->post->create_many( 20 );
293
294
		foreach ( $post_ids as $post_id ) {
295
			wp_set_object_terms( $post_id, array( 'cat1', 'cat2', 'cat3' ), 'category', true );
296
			wp_set_object_terms( $post_id, array( 'tag1', 'tag2', 'tag3' ), 'post_tag', true );
297
		}
298
299
		$original_number_of_term_relationships = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->term_relationships" );
300
@@ 332-335 (lines=4) @@
329
330
		$post_ids = $this->factory->post->create_many( 4 );
331
332
		foreach ( $post_ids as $post_id ) {
333
			wp_set_object_terms( $post_id, array( 'cat1', 'cat2', 'cat3' ), 'category', true );
334
			wp_set_object_terms( $post_id, array( 'tag1', 'tag2', 'tag3' ), 'post_tag', true );
335
		}
336
337
		// 28
338
		$original_number_of_term_relationships = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->term_relationships" );