- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menu-setting.php
r51568 r52010 20 20 * @see WP_UnitTestCase::setup() 21 21 */ 22 function set_up() {22 public function set_up() { 23 23 parent::set_up(); 24 24 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; … … 33 33 * Delete the $wp_customize global when cleaning up scope. 34 34 */ 35 function clean_up_global_scope() {35 public function clean_up_global_scope() { 36 36 global $wp_customize; 37 37 $wp_customize = null; … … 44 44 * @return array 45 45 */ 46 function get_nav_menu_items_option() {46 private function get_nav_menu_items_option() { 47 47 return get_option( 'nav_menu_options', array( 'auto_add' => array() ) ); 48 48 } … … 51 51 * Test constants and statics. 52 52 */ 53 function test_constants() {53 public function test_constants() { 54 54 do_action( 'customize_register', $this->wp_customize ); 55 55 $this->assertTrue( taxonomy_exists( WP_Customize_Nav_Menu_Setting::TAXONOMY ) ); … … 61 61 * @see WP_Customize_Nav_Menu_Setting::__construct() 62 62 */ 63 function test_construct() {63 public function test_construct() { 64 64 do_action( 'customize_register', $this->wp_customize ); 65 65 … … 92 92 * Test empty constructor. 93 93 */ 94 function test_construct_empty_menus() {94 public function test_construct_empty_menus() { 95 95 do_action( 'customize_register', $this->wp_customize ); 96 96 $_wp_customize = $this->wp_customize; … … 112 112 * @see WP_Customize_Nav_Menu_Setting::__construct() 113 113 */ 114 function test_construct_placeholder() {114 public function test_construct_placeholder() { 115 115 do_action( 'customize_register', $this->wp_customize ); 116 116 $default = array( … … 129 129 * @see WP_Customize_Nav_Menu_Setting::value() 130 130 */ 131 function test_value() {131 public function test_value() { 132 132 do_action( 'customize_register', $this->wp_customize ); 133 133 … … 169 169 * @see WP_Customize_Nav_Menu_Setting::preview() 170 170 */ 171 function test_preview_updated() {171 public function test_preview_updated() { 172 172 do_action( 'customize_register', $this->wp_customize ); 173 173 … … 236 236 * @see WP_Customize_Nav_Menu_Setting::preview() 237 237 */ 238 function test_preview_inserted() {238 public function test_preview_inserted() { 239 239 do_action( 'customize_register', $this->wp_customize ); 240 240 … … 281 281 * @see WP_Customize_Nav_Menu_Setting::preview() 282 282 */ 283 function test_preview_deleted() {283 public function test_preview_deleted() { 284 284 do_action( 'customize_register', $this->wp_customize ); 285 285 … … 320 320 * @see WP_Customize_Nav_Menu_Setting::sanitize() 321 321 */ 322 function test_sanitize() {322 public function test_sanitize() { 323 323 do_action( 'customize_register', $this->wp_customize ); 324 324 $setting = new WP_Customize_Nav_Menu_Setting( $this->wp_customize, 'nav_menu[123]' ); … … 351 351 * @see WP_Customize_Nav_Menu_Setting::update() 352 352 */ 353 function test_save_updated() {353 public function test_save_updated() { 354 354 do_action( 'customize_register', $this->wp_customize ); 355 355 … … 416 416 * @see WP_Customize_Nav_Menu_Setting::update() 417 417 */ 418 function test_save_inserted() {418 public function test_save_inserted() { 419 419 do_action( 'customize_register', $this->wp_customize ); 420 420 … … 465 465 * @see WP_Customize_Nav_Menu_Setting::update() 466 466 */ 467 function test_save_inserted_conflicted_name() {467 public function test_save_inserted_conflicted_name() { 468 468 do_action( 'customize_register', $this->wp_customize ); 469 469 … … 490 490 * @see WP_Customize_Nav_Menu_Setting::update() 491 491 */ 492 function test_save_deleted() {492 public function test_save_deleted() { 493 493 do_action( 'customize_register', $this->wp_customize ); 494 494
Note: See TracChangeset
for help on using the changeset viewer.