Make WordPress Core

Changeset 53492


Ignore:
Timestamp:
06/13/2022 02:51:33 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use more consistent wording when referring to PHP deprecation notices.

Follow-up to [51619], [51695].

See #55652.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/cron.php

    r52389 r53492  
    103103    /**
    104104     * Tests that a call to wp_schedule_event() on a site without any scheduled events
    105      * does not result in a PHP deprecation warning on PHP 8.1 or higher.
    106      *
    107      * The warning that we should not see:
     105     * does not result in a PHP deprecation notice on PHP 8.1 or higher.
     106     *
     107     * The notice that we should not see:
    108108     * `Deprecated: Automatic conversion of false to array is deprecated`.
    109109     *
     
    112112     * @covers ::wp_schedule_event
    113113     */
    114     public function test_wp_schedule_event_without_cron_option_does_not_throw_warning() {
     114    public function test_wp_schedule_event_without_cron_option_does_not_throw_deprecation_notice() {
    115115        delete_option( 'cron' );
    116116
  • trunk/tests/phpunit/tests/cron/setCronArray.php

    r51695 r53492  
    2525     *
    2626     * Includes verifying that invalid input - typically `false` - does not result in a PHP
    27      * deprecation warning on PHP 8.1 or higher.
     27     * deprecation notice on PHP 8.1 or higher.
    2828     *
    29      * The warning that we should not see:
     29     * The notice that we should not see:
    3030     * `Deprecated: Automatic conversion of false to array is deprecated`.
    3131     *
Note: See TracChangeset for help on using the changeset viewer.