diff --git a/tests/phpunit/tests/option/registration.php b/tests/phpunit/tests/option/registration.php index 9b0e418c91c57..850376498e91a 100644 --- a/tests/phpunit/tests/option/registration.php +++ b/tests/phpunit/tests/option/registration.php @@ -151,14 +151,13 @@ public function test_unregister_setting_removes_default() { } /** - * The test passes if a Notice | Warning | Error is not raised. Thus. the absence of a Notice | Warning | Error - * is an indicator the fix in the ticket resolves the issue. + * Ensures that unregister_setting() does not throw a notice or warning for unknown settings. * * @ticket 57674 * * @covers ::unregister_setting */ - public function test_unregister_invalid_setting_does_not_raise_php_notice_warning_or_error() { + public function test_unregister_invalid_setting_does_not_throw_notice_or_warning() { $setting = uniqid(); unregister_setting( $setting, $setting ); $this->assertFalse( has_filter( 'default_option_' . $setting, 'filter_default_option' ) );