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

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

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@53492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-06-13 14:51:33 +00:00
parent 2f8a627bd1
commit 26d3ef0bf0
2 changed files with 5 additions and 5 deletions

View File

@ -102,16 +102,16 @@ class Tests_Cron extends WP_UnitTestCase {
/**
* Tests that a call to wp_schedule_event() on a site without any scheduled events
* does not result in a PHP deprecation warning on PHP 8.1 or higher.
* does not result in a PHP deprecation notice on PHP 8.1 or higher.
*
* The warning that we should not see:
* The notice that we should not see:
* `Deprecated: Automatic conversion of false to array is deprecated`.
*
* @ticket 53635
*
* @covers ::wp_schedule_event
*/
public function test_wp_schedule_event_without_cron_option_does_not_throw_warning() {
public function test_wp_schedule_event_without_cron_option_does_not_throw_deprecation_notice() {
delete_option( 'cron' );
// Verify that the cause of the error is in place.

View File

@ -24,9 +24,9 @@ class Tests_Cron_setCronArray extends WP_UnitTestCase {
* Tests the input validation for the `_set_cron_array()` function.
*
* Includes verifying that invalid input - typically `false` - does not result in a PHP
* deprecation warning on PHP 8.1 or higher.
* deprecation notice on PHP 8.1 or higher.
*
* The warning that we should not see:
* The notice that we should not see:
* `Deprecated: Automatic conversion of false to array is deprecated`.
*
* @ticket 53635