Code Duplication    Length = 7-8 lines in 2 locations

projects/plugins/jetpack/tests/php/modules/post-by-email/test-class.post-by-email-api.php 1 location

@@ 180-187 (lines=8) @@
177
	 *
178
	 * @return array
179
	 */
180
	public function mock_jetpack_private_options() {
181
		$user_tokens                    = array();
182
		$user_tokens[ self::$admin_id ] = 'pretend_this_is_valid.secret.' . self::$admin_id;
183
184
		return array(
185
			'user_tokens' => $user_tokens,
186
		);
187
	}
188
189
	/**
190
	 * Ensures that these tests pass through Jetpack::wp_rest_authenticate,

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

@@ 1118-1124 (lines=7) @@
1115
	/**
1116
	 * Mock Jetpack private options.
1117
	 */
1118
	public function mock_jetpack_private_options() {
1119
		$user_tokens                    = array();
1120
		$user_tokens[ self::$admin_id ] = 'pretend_this_is_valid.secret.' . self::$admin_id;
1121
		return array(
1122
			'user_tokens' => $user_tokens,
1123
		);
1124
	}
1125
1126
	/**
1127
	 * Test "get_timezone_from_timezone_string".