Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 180-193 (lines=14) @@
177
		return 'bar';
178
	}
179
180
	function test_full_sync_sends_all_comments() {
181
		$post = $this->factory->post->create();
182
		$this->factory->comment->create_post_comments( $post, 11 );
183
184
		// simulate emptying the server storage
185
		$this->server_replica_storage->reset();
186
		$this->sender->reset_data();
187
188
		$this->full_sync->start();
189
		$this->sender->do_full_sync();
190
191
		$comments = $this->server_replica_storage->get_comments();
192
		$this->assertEquals( 11, count( $comments ) );
193
	}
194
195
	function test_full_sync_sends_all_terms() {
196
		$NUMBER_OF_TERMS_TO_CREATE = 11;

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

@@ 206-219 (lines=14) @@
203
		return 'bar';
204
	}
205
206
	function test_full_sync_sends_all_comments() {
207
		$post = $this->factory->post->create();
208
		$this->factory->comment->create_post_comments( $post, 11 );
209
210
		// simulate emptying the server storage
211
		$this->server_replica_storage->reset();
212
		$this->sender->reset_data();
213
214
		$this->full_sync->start();
215
		$this->sender->do_full_sync();
216
217
		$comments = $this->server_replica_storage->get_comments();
218
		$this->assertEquals( 11, count( $comments ) );
219
	}
220
221
	function test_full_sync_sends_all_terms() {
222
		$NUMBER_OF_TERMS_TO_CREATE = 11;