Completed
Push — fix/protect-notice ( a7e8ce )
by
unknown
10:06
created
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-base.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -102,6 +102,10 @@
 block discarded – undo
102 102
 	// asserts that two objects are the same if they're both "objectified",
103 103
 	// i.e. json_encoded and then json_decoded
104 104
 	// this is useful because we json encode everything sent to the server
105
+
106
+	/**
107
+	 * @param string $message
108
+	 */
105 109
 	protected function assertEqualsObject( $object_1, $object_2, $message = null ) {
106 110
 		$this->assertEquals( $this->objectify( $object_1 ), $this->objectify( $object_2 ), $message );
107 111
 	}
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/sync/test_class.jetpack-sync-callables.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,6 +149,9 @@  discard block
 block discarded – undo
149 149
 		return array( 'test' );
150 150
 	}
151 151
 
152
+	/**
153
+	 * @param string $name
154
+	 */
152 155
 	function assertCallableIsSynced( $name, $value ) {
153 156
 		$this->assertEqualsObject( $value, $this->server_replica_storage->get_callable( $name ), 'Function ' . $name . ' didn\'t have the expected value of ' . json_encode( $value ) );
154 157
 	}
@@ -635,6 +638,9 @@  discard block
 block discarded – undo
635 638
 		$this->assert_sanitized_post_type_default( $sanitized, $label );
636 639
 	}
637 640
 
641
+	/**
642
+	 * @param string $label
643
+	 */
638 644
 	function assert_sanitized_post_type_default( $sanitized, $label ) {
639 645
 		$this->assertEquals( $label, $sanitized->name );
640 646
 		$this->assertEquals( 'Posts', $sanitized->label );
@@ -1201,7 +1207,7 @@  discard block
 block discarded – undo
1201 1207
 	/**
1202 1208
 	 * Test getting a hosting provider by a known function
1203 1209
 	 *
1204
-	 * @return bool
1210
+	 * @return boolean|null
1205 1211
 	 */
1206 1212
 	public function test_get_hosting_provider_by_known_function() {
1207 1213
 
@@ -1310,7 +1316,7 @@  discard block
 block discarded – undo
1310 1316
 /**
1311 1317
  * Create a recursive object.
1312 1318
  *
1313
- * @return object
1319
+ * @return stdClass
1314 1320
  */
1315 1321
 function jetpack_recursive_banana() {
1316 1322
 	$banana        = new stdClass();
Please login to merge, or discard this patch.
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-meta.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -219,6 +219,10 @@
 block discarded – undo
219 219
 		$this->assertEquals( get_post_meta( $post_id, '_feedback_akismet_values', true ), $meta_key_value );
220 220
 	}
221 221
 
222
+	/**
223
+	 * @param string $value
224
+	 * @param string $type
225
+	 */
222 226
 	function assertOptionIsSynced( $meta_key, $value, $type, $object_id ) {
223 227
 		$this->assertEqualsObject( $value, $this->server_replica_storage->get_metadata( $type, $object_id, $meta_key, true ), 'Synced option doesn\'t match local option.' );
224 228
 	}
Please login to merge, or discard this patch.
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-options.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -286,6 +286,9 @@
 block discarded – undo
286 286
 		$this->assertTrue( in_array( 'foo_option_bar', $whitelist ) );
287 287
 	}
288 288
 
289
+	/**
290
+	 * @param string $option_name
291
+	 */
289 292
 	function assertOptionIsSynced( $option_name, $value ) {
290 293
 		$this->assertEqualsObject( $value, $this->server_replica_storage->get_option( $option_name ), 'Option ' . $option_name . ' did\'t have the extected value of ' . json_encode( $value ) );
291 294
 	}
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/sync/test_class.jetpack-sync-plugins-updates.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@
 block discarded – undo
125 125
 		remove_filter( 'site_transient_update_plugins' , array( $this, 'set_update_plugin_transient' ) );
126 126
 	}
127 127
 
128
+	/**
129
+	 * @param Silent_Upgrader_Skin $skin
130
+	 */
128 131
 	function update_bulk_plugins( $skin ) {
129 132
 		require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
130 133
 		require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
Please login to merge, or discard this patch.
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-themes.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -401,6 +401,9 @@
 block discarded – undo
401 401
 		$this->assertEquals( $event->args[0]['title'], 'My Widget' );
402 402
 	}
403 403
 
404
+	/**
405
+	 * @param string $slug
406
+	 */
404 407
 	private function install_theme( $slug ) {
405 408
 		require_once ABSPATH . 'wp-admin/includes/theme-install.php';
406 409
 		require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
Please login to merge, or discard this patch.
projects/plugins/jetpack/tests/php/sync/test_class.jetpack-sync-updates.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
 		$this->assertTrue( (bool) $has_action );
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param string $new_version
74
+	 */
72 75
 	function new_plugin_response( $new_version ) {
73 76
 		return (object) array(
74 77
 			'response' => array(
@@ -131,6 +134,9 @@  discard block
 block discarded – undo
131 134
 		$this->assertTrue( (bool) $has_action );
132 135
 	}
133 136
 
137
+	/**
138
+	 * @param string $new_version
139
+	 */
134 140
 	public function new_theme_response( $new_version ) {
135 141
 		return (object) array(
136 142
 			'response' => array(
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/sync/test_class.jetpack-sync-woocommerce.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -312,6 +312,10 @@
 block discarded – undo
312 312
 		}
313 313
 	}
314 314
 
315
+	/**
316
+	 * @param string $expected_meta_key
317
+	 * @param integer $expected_meta_value
318
+	 */
315 319
 	private function assertHasObjectMetaValue( $metas, $order_item_id, $expected_meta_key, $expected_meta_value ) {
316 320
 		$has_meta_entry = false;
317 321
 		foreach( $metas as $meta ) {
Please login to merge, or discard this patch.
plugins/jetpack/tests/php/sync/test_interface.jetpack-sync-replicastore.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1032,6 +1032,9 @@
 block discarded – undo
1032 1032
 		return $return;
1033 1033
 	}
1034 1034
 
1035
+	/**
1036
+	 * @param string $slug
1037
+	 */
1035 1038
 	private function ensure_synced_taxonomy( $store, $slug, $type = 'post' ) {
1036 1039
 		register_taxonomy(
1037 1040
 			$slug,
Please login to merge, or discard this patch.