Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 831-843 (lines=13) @@
828
		$this->assertEquals( $custom_config, $this->full_sync_start_config );
829
	}
830
831
	function test_full_sync_end_sends_checksums() {
832
		$this->markTestSkipped( "We don't send checksums in this version" );
833
		add_action( 'jetpack_full_sync_end', array( $this, 'record_full_sync_end_checksum' ), 10, 1 );
834
835
		$this->full_sync->start();
836
		$this->sender->do_full_sync();
837
		$this->sender->do_full_sync();
838
		$this->sender->do_full_sync();
839
840
		$this->assertTrue( isset( $this->full_sync_end_checksum ) );
841
		$this->assertTrue( isset( $this->full_sync_end_checksum['posts'] ) );
842
		$this->assertTrue( isset( $this->full_sync_end_checksum['comments'] ) );
843
	}
844
845
	function test_full_sync_end_sends_range() {
846
		$this->create_dummy_data_and_reset_sync_status();

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

@@ 1020-1032 (lines=13) @@
1017
		$this->assertEquals( $custom_config, $this->full_sync_start_config );
1018
	}
1019
1020
	function test_full_sync_end_sends_checksums() {
1021
		$this->markTestSkipped( "We don't send checksums in this version" );
1022
		add_action( 'jetpack_full_sync_end', array( $this, 'record_full_sync_end_checksum' ), 10, 1 );
1023
1024
		$this->full_sync->start();
1025
		$this->sender->do_full_sync();
1026
		$this->sender->do_full_sync();
1027
		$this->sender->do_full_sync();
1028
1029
		$this->assertTrue( isset( $this->full_sync_end_checksum ) );
1030
		$this->assertTrue( isset( $this->full_sync_end_checksum['posts'] ) );
1031
		$this->assertTrue( isset( $this->full_sync_end_checksum['comments'] ) );
1032
	}
1033
1034
	function test_full_sync_end_sends_range() {
1035
		$this->create_dummy_data_and_empty_the_queue();