Code Duplication    Length = 9-11 lines in 2 locations

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

@@ 25-35 (lines=11) @@
22
	private $test_posts_count = 20;
23
	private $test_comments_count = 11;
24
25
	public function setUp() {
26
		parent::setUp();
27
		Settings::reset_data();
28
29
		$this->full_sync = Modules::get_module( 'full-sync' );
30
31
		$this->server_replica_storage->reset();
32
		$this->sender->reset_data();
33
		$this->sender->set_enqueue_wait_time( 0 );
34
35
	}
36
37
	function test_sync_start_action_with_ranges() {
38
		$post = $this->factory->post->create();

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

@@ 23-31 (lines=9) @@
20
	private $test_posts_count    = 20;
21
	private $test_comments_count = 11;
22
23
	public function setUp() {
24
		parent::setUp();
25
		Settings::reset_data();
26
		Settings::update_settings( array( 'full_sync_send_immediately' => 0 ) );
27
28
		$this->full_sync = Modules::get_module( 'full-sync' );
29
		$this->server_replica_storage->reset();
30
		$this->sender->reset_data();
31
	}
32
33
	function test_enqueues_sync_start_action() {
34
		$post = $this->factory->post->create();