@@ -205,8 +205,7 @@ discard block |
||
| 205 | 205 | /** |
| 206 | 206 | * Mock a set of constants. |
| 207 | 207 | * |
| 208 | - * @param array $args Array of sets with constants and their respective values. |
|
| 209 | - * @return phpmock\Mock The mock object. |
|
| 208 | + * @return phpmock\Mock[] The mock object. |
|
| 210 | 209 | */ |
| 211 | 210 | protected function mock_constants( $constants = array() ) { |
| 212 | 211 | $prepare_constant = function( $constant ) { |
@@ -222,7 +221,7 @@ discard block |
||
| 222 | 221 | /** |
| 223 | 222 | * Mock $wpdb->get_var() and make it return a certain value. |
| 224 | 223 | * |
| 225 | - * @param mixed $return_value Return value of the function. |
|
| 224 | + * @param integer $return_value Return value of the function. |
|
| 226 | 225 | * @return PHPUnit\Framework\MockObject\MockObject The mock object. |
| 227 | 226 | */ |
| 228 | 227 | protected function mock_wpdb_get_var( $return_value = null ) { |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | * - wp-content/rest-api-plugins/jetpack-endpoints/ |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | +/** |
|
| 12 | + * @param string $file_pattern |
|
| 13 | + */ |
|
| 11 | 14 | function wpcom_rest_api_v2_load_plugin_files( $file_pattern ) { |
| 12 | 15 | $plugins = glob( dirname( __FILE__ ) . '/' . $file_pattern ); |
| 13 | 16 | |