Passed
Branch ticket-41057 (c4f931)
by Stephen
24:38
created
tests/phpunit/includes/testcase-rest-post-type-controller.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -2,6 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 abstract class WP_Test_REST_Post_Type_Controller_Testcase extends WP_Test_REST_Controller_Testcase {
4 4
 
5
+	/**
6
+	 * @param string $context
7
+	 */
5 8
 	protected function check_post_data( $post, $data, $context, $links ) {
6 9
 		$post_type_obj = get_post_type_object( $post->post_type );
7 10
 
@@ -199,6 +202,9 @@  discard block
 block discarded – undo
199 202
 
200 203
 	}
201 204
 
205
+	/**
206
+	 * @param WP_REST_Response $response
207
+	 */
202 208
 	protected function check_get_posts_response( $response, $context = 'view' ) {
203 209
 		$this->assertNotInstanceOf( 'WP_Error', $response );
204 210
 		$response = rest_ensure_response( $response );
@@ -237,6 +243,9 @@  discard block
 block discarded – undo
237 243
 
238 244
 	}
239 245
 
246
+	/**
247
+	 * @param WP_REST_Response $response
248
+	 */
240 249
 	protected function check_create_post_response( $response ) {
241 250
 		$this->assertNotInstanceOf( 'WP_Error', $response );
242 251
 		$response = rest_ensure_response( $response );
@@ -250,6 +259,9 @@  discard block
 block discarded – undo
250 259
 		$this->check_post_data( $post, $data, 'edit', $response->get_links() );
251 260
 	}
252 261
 
262
+	/**
263
+	 * @param WP_REST_Response $response
264
+	 */
253 265
 	protected function check_update_post_response( $response ) {
254 266
 		$this->assertNotInstanceOf( 'WP_Error', $response );
255 267
 		$response = rest_ensure_response( $response );
Please login to merge, or discard this patch.
tests/phpunit/includes/trac.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -11,6 +11,7 @@
 block discarded – undo
11 11
 	/**
12 12
 	 * Checks if track ticket #$ticket_id is resolved
13 13
 	 *
14
+	 * @param string $trac_url
14 15
 	 * @return bool|null true if the ticket is resolved, false if not resolved, null on error
15 16
 	 */
16 17
 	public static function isTracTicketClosed( $trac_url, $ticket_id ) {
Please login to merge, or discard this patch.
tests/phpunit/tests/rest-api/rest-categories-controller.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -851,6 +851,9 @@  discard block
 block discarded – undo
851 851
 		parent::tearDown();
852 852
 	}
853 853
 
854
+	/**
855
+	 * @param WP_REST_Response $response
856
+	 */
854 857
 	protected function check_get_taxonomy_terms_response( $response ) {
855 858
 		$this->assertEquals( 200, $response->get_status() );
856 859
 		$data = $response->get_data();
@@ -897,6 +900,9 @@  discard block
 block discarded – undo
897 900
 		$this->assertEquals( add_query_arg( 'categories', $term->term_id, rest_url( 'wp/v2/posts' ) ), $links['https://api.w.org/post_type'][0]['href'] );
898 901
 	}
899 902
 
903
+	/**
904
+	 * @param WP_REST_Response $response
905
+	 */
900 906
 	protected function check_get_taxonomy_term_response( $response ) {
901 907
 
902 908
 		$this->assertEquals( 200, $response->get_status() );
Please login to merge, or discard this patch.