- Timestamp:
- 11/29/2022 09:11:42 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/wpRestMenuItemsController.php
r52248 r54896 376 376 $expected = array(); 377 377 $actual = array(); 378 for ( $i = 1; $i < 5; $i 378 for ( $i = 1; $i < 5; $i++ ) { 379 379 $request = new WP_REST_Request( 'POST', '/wp/v2/menu-items' ); 380 380 $request->add_header( 'content-type', 'application/x-www-form-urlencoded' ); … … 922 922 $this->assertSame( $taxonomy->name, $links['https://api.w.org/term'][ $num ]['attributes']['taxonomy'] ); 923 923 $this->assertSame( add_query_arg( 'post', $data['id'], rest_url( 'wp/v2/' . $taxonomy->rest_base ) ), $links['https://api.w.org/term'][ $num ]['href'] ); 924 $num 924 $num++; 925 925 } 926 926
Note: See TracChangeset
for help on using the changeset viewer.