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