Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 39-46 (lines=8) @@
36
		set_current_screen( 'post-user' ); // this only works in is_admin()
37
	}
38
39
	function test_white_listed_function_is_synced() {
40
		$this->callable_module->set_callable_whitelist( array( 'jetpack_foo' => 'jetpack_foo_is_callable' ) );
41
42
		$this->sender->do_sync();
43
44
		$synced_value = $this->server_replica_storage->get_callable( 'jetpack_foo' );
45
		$this->assertEquals( jetpack_foo_is_callable(), $synced_value );
46
	}
47
48
	public function test_sync_jetpack_updates() {
49
		$this->sender->do_sync();
@@ 1150-1156 (lines=7) @@
1147
	/**
1148
	 * Test "sync_callable_recursive_gets_checksum".
1149
	 */
1150
	public function test_sync_callable_recursive_gets_checksum() {
1151
1152
		$this->callable_module->set_callable_whitelist( array( 'jetpack_banana' => 'jetpack_recursive_banana' ) );
1153
		$this->sender->do_sync();
1154
		$synced_value = $this->server_replica_storage->get_callable( 'jetpack_banana' );
1155
		$this->assertTrue( ! empty( $synced_value ), 'We couldn\'t synced a value!' );
1156
	}
1157
1158
	/**
1159
	 * Test get_hosting_provider() callable to ensure that known hosts have the