Changeset 53865 for trunk/tests/phpunit/tests/option/registration.php
- Timestamp:
- 08/08/2022 11:33:11 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/registration.php
r48937 r53865 5 5 */ 6 6 class Tests_Option_Registration extends WP_UnitTestCase { 7 8 /** 9 * @covers ::register_setting 10 */ 7 11 public function test_register() { 8 12 register_setting( 'test_group', 'test_option' ); … … 20 24 } 21 25 26 /** 27 * @covers ::register_setting 28 * @covers ::apply_filters 29 */ 22 30 public function test_register_with_callback() { 23 31 register_setting( 'test_group', 'test_option', array( $this, 'filter_registered_setting' ) ); … … 27 35 } 28 36 37 /** 38 * @covers ::register_setting 39 * @covers WP_REST_Settings_Controller 40 * @covers ::apply_filters 41 */ 29 42 public function test_register_with_array() { 30 43 register_setting( … … 46 59 /** 47 60 * @ticket 38176 61 * 62 * @covers ::register_setting 48 63 */ 49 64 public function test_register_with_default() { … … 61 76 /** 62 77 * @ticket 38176 78 * 79 * @covers ::register_setting 63 80 */ 64 81 public function test_register_with_default_override() { … … 78 95 /** 79 96 * @ticket 38930 97 * 98 * @covers ::register_setting 99 * @covers ::add_option 100 * @covers ::get_option 80 101 */ 81 102 public function test_add_option_with_no_options_cache() { … … 94 115 /** 95 116 * @expectedDeprecated register_setting 117 * 118 * @covers ::register_setting 96 119 */ 97 120 public function test_register_deprecated_group_misc() { … … 101 124 /** 102 125 * @expectedDeprecated register_setting 126 * 127 * @covers ::register_setting 103 128 */ 104 129 public function test_register_deprecated_group_privacy() { … … 108 133 /** 109 134 * @ticket 43207 135 * 136 * @covers ::register_setting 137 * @covers ::unregister_setting 110 138 */ 111 139 public function test_unregister_setting_removes_default() {
Note: See TracChangeset
for help on using the changeset viewer.