From f626e2897b7a2a42955d66aa415eadd3f9f03c30 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 13 Feb 2021 12:17:36 +0000 Subject: [PATCH] Tests: Use `@ticket` annotation for ticket numbers, for clarity. See #51802. git-svn-id: https://develop.svn.wordpress.org/trunk@50337 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment/lastCommentModified.php | 2 +- tests/phpunit/tests/feed/rss2.php | 2 +- tests/phpunit/tests/formatting/redirect.php | 2 +- tests/phpunit/tests/general/wpResourceHints.php | 2 +- tests/phpunit/tests/l10n/localeSwitcher.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/comment/lastCommentModified.php b/tests/phpunit/tests/comment/lastCommentModified.php index bbb6c265fb..4369743cbb 100644 --- a/tests/phpunit/tests/comment/lastCommentModified.php +++ b/tests/phpunit/tests/comment/lastCommentModified.php @@ -2,7 +2,7 @@ /** * @group comment - * @group 38027 + * @ticket 38027 */ class Tests_Comment_Last_Modified extends WP_UnitTestCase { public function test_no_comments() { diff --git a/tests/phpunit/tests/feed/rss2.php b/tests/phpunit/tests/feed/rss2.php index e65b6f126a..7d8af32cb5 100644 --- a/tests/phpunit/tests/feed/rss2.php +++ b/tests/phpunit/tests/feed/rss2.php @@ -150,7 +150,7 @@ class Tests_Feeds_RSS2 extends WP_UnitTestCase { /** * Test that translated feeds have a valid listed date. * - * @group 39141 + * @ticket 39141 */ function test_channel_pubdate_element_translated() { $original_locale = $GLOBALS['wp_locale']; diff --git a/tests/phpunit/tests/formatting/redirect.php b/tests/phpunit/tests/formatting/redirect.php index 425be5c940..0b9fc31a2d 100644 --- a/tests/phpunit/tests/formatting/redirect.php +++ b/tests/phpunit/tests/formatting/redirect.php @@ -63,7 +63,7 @@ class Tests_Formatting_Redirect extends WP_UnitTestCase { } /** - * @group 36998 + * @ticket 36998 */ function test_wp_sanitize_redirect_should_encode_spaces() { $this->assertSame( 'http://example.com/test%20spaces', wp_sanitize_redirect( 'http://example.com/test%20spaces' ) ); diff --git a/tests/phpunit/tests/general/wpResourceHints.php b/tests/phpunit/tests/general/wpResourceHints.php index 1e622350fe..d60c782c2a 100644 --- a/tests/phpunit/tests/general/wpResourceHints.php +++ b/tests/phpunit/tests/general/wpResourceHints.php @@ -244,7 +244,7 @@ class Tests_General_wpResourceHints extends WP_UnitTestCase { } /** - * @group 38121 + * @ticket 38121 */ function test_custom_attributes() { $expected = "\n" . diff --git a/tests/phpunit/tests/l10n/localeSwitcher.php b/tests/phpunit/tests/l10n/localeSwitcher.php index ec86fcbca4..bb0324b749 100644 --- a/tests/phpunit/tests/l10n/localeSwitcher.php +++ b/tests/phpunit/tests/l10n/localeSwitcher.php @@ -3,7 +3,7 @@ /** * @group l10n * @group i18n - * @group 26511 + * @ticket 26511 */ class Tests_Locale_Switcher extends WP_UnitTestCase { /**