Changeset 52010 for trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
r51568 r52010 81 81 * @param array $expected_results Expected results. 82 82 */ 83 function test_ajax_load_available_items_cap_check( $role, $expected_results ) {83 public function test_ajax_load_available_items_cap_check( $role, $expected_results ) { 84 84 85 85 if ( 'administrator' !== $role ) { … … 123 123 * } 124 124 */ 125 function data_ajax_load_available_items_cap_check() {125 public function data_ajax_load_available_items_cap_check() { 126 126 return array( 127 127 array( … … 159 159 * @param mixed $expected_results Expected results. 160 160 */ 161 function test_ajax_load_available_items_error_messages( $post_args, $expected_results ) {161 public function test_ajax_load_available_items_error_messages( $post_args, $expected_results ) { 162 162 163 163 $_POST = array_merge( … … 193 193 * } 194 194 */ 195 function data_ajax_load_available_items_error_messages() {195 public function data_ajax_load_available_items_error_messages() { 196 196 return array( 197 197 // Testing empty obj_type and type. … … 269 269 * @param array $success_status Success status. 270 270 */ 271 function test_ajax_load_available_items_success_status( $post_args, $success_status ) {271 public function test_ajax_load_available_items_success_status( $post_args, $success_status ) { 272 272 273 273 $_POST = array_merge( … … 303 303 * } 304 304 */ 305 function data_ajax_load_available_items_success_status() {305 public function data_ajax_load_available_items_success_status() { 306 306 return array( 307 307 array( … … 359 359 * @param array $post_args POST args. 360 360 */ 361 function test2_ajax_load_available_items_structure( $post_args ) {361 public function test2_ajax_load_available_items_structure( $post_args ) { 362 362 do_action( 'customize_register', $this->wp_customize ); 363 363 … … 437 437 * } 438 438 */ 439 function data_ajax_load_available_items_structure() {439 public function data_ajax_load_available_items_structure() { 440 440 return array( 441 441 array( … … 468 468 * @param array $expected_results Expected results. 469 469 */ 470 function test_ajax_search_available_items_caps_check( $role, $expected_results ) {470 public function test_ajax_search_available_items_caps_check( $role, $expected_results ) { 471 471 472 472 if ( 'administrator' !== $role ) { … … 511 511 * } 512 512 */ 513 function data_ajax_search_available_items_caps_check() {513 public function data_ajax_search_available_items_caps_check() { 514 514 return array( 515 515 array( … … 547 547 * @param array $expected_results Expected results. 548 548 */ 549 function test_ajax_search_available_items_results( $post_args, $expected_results ) {549 public function test_ajax_search_available_items_results( $post_args, $expected_results ) { 550 550 do_action( 'customize_register', $this->wp_customize ); 551 551 … … 603 603 * } 604 604 */ 605 function data_ajax_search_available_items_results() {605 public function data_ajax_search_available_items_results() { 606 606 return array( 607 607 array( … … 640 640 * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post 641 641 */ 642 function test_ajax_insert_auto_draft_post_success() {642 public function test_ajax_insert_auto_draft_post_success() { 643 643 $_POST = wp_slash( 644 644 array( … … 670 670 * @covers WP_Customize_Nav_Menus::ajax_insert_auto_draft_post 671 671 */ 672 function test_ajax_insert_auto_draft_failures() {672 public function test_ajax_insert_auto_draft_failures() { 673 673 // No nonce. 674 674 $_POST = array();
Note: See TracChangeset
for help on using the changeset viewer.