Changeset 43571 for trunk/tests/phpunit/tests/customize/setting.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/setting.php
r42799 r43571 445 445 $setting_id = 'custom_without_previewing_value_filter'; 446 446 $setting = $this->manager->add_setting( 447 $setting_id, array( 447 $setting_id, 448 array( 448 449 'type' => 'custom_preview_test', 449 450 'default' => 123, … … 600 601 $name = 'autoloaded1'; 601 602 $setting = new WP_Customize_Setting( 602 $this->manager, $name, array( 603 $this->manager, 604 $name, 605 array( 603 606 'type' => 'option', 604 607 ) … … 613 616 $name = 'autoloaded2'; 614 617 $setting = new WP_Customize_Setting( 615 $this->manager, $name, array( 618 $this->manager, 619 $name, 620 array( 616 621 'type' => 'option', 617 622 'autoload' => true, … … 627 632 $name = 'not-autoloaded1'; 628 633 $setting = new WP_Customize_Setting( 629 $this->manager, $name, array( 634 $this->manager, 635 $name, 636 array( 630 637 'type' => 'option', 631 638 'autoload' => false, … … 641 648 $id_base = 'multi-not-autoloaded'; 642 649 $setting1 = new WP_Customize_Setting( 643 $this->manager, $id_base . '[foo]', array( 650 $this->manager, 651 $id_base . '[foo]', 652 array( 644 653 'type' => 'option', 645 654 ) 646 655 ); 647 656 $setting2 = new WP_Customize_Setting( 648 $this->manager, $id_base . '[bar]', array( 657 $this->manager, 658 $id_base . '[bar]', 659 array( 649 660 'type' => 'option', 650 661 'autoload' => false, … … 696 707 public function test_validate() { 697 708 $setting = new WP_Customize_Setting( 698 $this->manager, 'name', array( 709 $this->manager, 710 'name', 711 array( 699 712 'type' => 'key', 700 713 'validate_callback' => array( $this, 'filter_validate_for_test_validate' ), … … 736 749 $initial_value = 456; 737 750 set_theme_mod( 738 'nav_menu_locations', array( 751 'nav_menu_locations', 752 array( 739 753 'primary' => $initial_value, 740 754 )
Note: See TracChangeset
for help on using the changeset viewer.