Changeset 43571 for trunk/tests/phpunit/tests/option/registration.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/registration.php
r42667 r43571 29 29 public function test_register_with_array() { 30 30 register_setting( 31 'test_group', 'test_option', array( 31 'test_group', 32 'test_option', 33 array( 32 34 'sanitize_callback' => array( $this, 'filter_registered_setting' ), 33 35 ) … … 47 49 public function test_register_with_default() { 48 50 register_setting( 49 'test_group', 'test_default', array( 51 'test_group', 52 'test_default', 53 array( 50 54 'default' => 'Got that Viper with them rally stripes', 51 55 ) … … 60 64 public function test_register_with_default_override() { 61 65 register_setting( 62 'test_group', 'test_default', array( 66 'test_group', 67 'test_default', 68 array( 63 69 'default' => 'Got that Viper with them rally stripes', 64 70 ) … … 75 81 public function test_add_option_with_no_options_cache() { 76 82 register_setting( 77 'test_group', 'test_default', array( 83 'test_group', 84 'test_default', 85 array( 78 86 'default' => 'My Default :)', 79 87 ) … … 103 111 public function test_unregister_setting_removes_default() { 104 112 register_setting( 105 'test_group', 'test_default', array( 113 'test_group', 114 'test_default', 115 array( 106 116 'default' => 'Got that Viper with them rally stripes', 107 117 )
Note: See TracChangeset
for help on using the changeset viewer.