From 26d3ef0bf00dbe79241e9bd529d6f1ebdd91b586 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 13 Jun 2022 14:51:33 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/cron.php | 6 +++--- tests/phpunit/tests/cron/setCronArray.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/cron.php b/tests/phpunit/tests/cron.php index 04665b000e..22ecd1d8cd 100644 --- a/tests/phpunit/tests/cron.php +++ b/tests/phpunit/tests/cron.php @@ -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. diff --git a/tests/phpunit/tests/cron/setCronArray.php b/tests/phpunit/tests/cron/setCronArray.php index 30e7eddec3..028d403f23 100644 --- a/tests/phpunit/tests/cron/setCronArray.php +++ b/tests/phpunit/tests/cron/setCronArray.php @@ -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