Changeset 56817 for trunk/tests/phpunit/tests/option/registration.php
- Timestamp:
- 10/10/2023 12:50:19 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/option/registration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/registration.php
r53865 r56817 150 150 $this->assertFalse( has_filter( 'default_option_test_default', 'filter_default_option' ) ); 151 151 } 152 153 /** 154 * The test passes if a Notice | Warning | Error is not raised. Thus. the absence of a Notice | Warning | Error 155 * is an indicator the fix in the ticket resolves the issue. 156 * 157 * @ticket 57674 158 * 159 * @covers ::unregister_setting 160 */ 161 public function test_unregister_invalid_setting_does_not_raise_php_notice_warning_or_error() { 162 $setting = uniqid(); 163 unregister_setting( $setting, $setting ); 164 $this->assertFalse( has_filter( 'default_option_' . $setting, 'filter_default_option' ) ); 165 } 152 166 }
Note: See TracChangeset
for help on using the changeset viewer.