@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * Mock a global function and make it return a certain value. |
| 116 | 116 | * |
| 117 | 117 | * @param string $function_name Name of the function. |
| 118 | - * @param mixed $return_value Return value of the function. |
|
| 118 | + * @param integer $return_value Return value of the function. |
|
| 119 | 119 | * @return phpmock\Mock The mock object. |
| 120 | 120 | */ |
| 121 | 121 | protected function mock_function( $function_name, $return_value = null ) { |
@@ -194,6 +194,9 @@ discard block |
||
| 194 | 194 | do_action( 'jetpack_full_sync_end', '', $range ); |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | + /** |
|
| 198 | + * @param string $type |
|
| 199 | + */ |
|
| 197 | 200 | function get_range( $type ) { |
| 198 | 201 | global $wpdb; |
| 199 | 202 | if ( ! in_array( $type, array( 'comments', 'posts' ) ) ) { |
@@ -404,6 +407,9 @@ discard block |
||
| 404 | 407 | $listener->get_full_sync_queue()->reset(); |
| 405 | 408 | } |
| 406 | 409 | |
| 410 | + /** |
|
| 411 | + * @param integer $default |
|
| 412 | + */ |
|
| 407 | 413 | private function get_status_option( $name, $default = null ) { |
| 408 | 414 | $value = \Jetpack_Options::get_raw_option( self::STATUS_OPTION_PREFIX . "_$name", $default ); |
| 409 | 415 | |