Make WordPress Core


Ignore:
Timestamp:
08/29/2024 11:26:35 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Tests: Clarify description for unregister_setting() test with an unknown setting.

Follow-up to [56817].

See #61530.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/registration.php

    r56817 r58954  
    152152
    153153    /**
    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.
     154     * Ensures that unregister_setting() does not throw a notice or warning for unknown settings.
    156155     *
    157156     * @ticket 57674
     
    159158     * @covers ::unregister_setting
    160159     */
    161     public function test_unregister_invalid_setting_does_not_raise_php_notice_warning_or_error() {
     160    public function test_unregister_invalid_setting_does_not_throw_notice_or_warning() {
    162161        $setting = uniqid();
    163162        unregister_setting( $setting, $setting );
Note: See TracChangeset for help on using the changeset viewer.