Skip to content

Commit

Permalink
Tests: Remove trailing characters from @ticket annotations.
Browse files Browse the repository at this point in the history
Follow-up to [44693], [46209], [54230], [54733], [55151].

Props jonsurrell.
See #61238.

git-svn-id: https://develop.svn.wordpress.org/trunk@58164 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed May 17, 2024
1 parent 9614cf5 commit 236a7e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/tests/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ public function filter_pre_scheduled_event_hooks() {
* When no timestamp is specified, the next event should be returned.
* When a timestamp is specified, a particular event should be returned.
*
* @ticket 45976.
* @ticket 45976
*
* @covers ::wp_get_scheduled_event
*/
Expand Down Expand Up @@ -643,7 +643,7 @@ public function test_get_scheduled_event_singles() {
* When no timestamp is specified, the next event should be returned.
* When a timestamp is specified, a particular event should be returned.
*
* @ticket 45976.
* @ticket 45976
*
* @covers ::wp_get_scheduled_event
*/
Expand Down Expand Up @@ -689,7 +689,7 @@ public function test_get_scheduled_event_recurring() {
/**
* Ensure wp_get_scheduled_event() returns false when expected.
*
* @ticket 45976.
* @ticket 45976
*
* @covers ::wp_get_scheduled_event
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ public function data_prepare_with_placeholders() {
),

/*
* @ticket 56933.
* @ticket 56933
* When preparing a '%%%s%%', test that the inserted value
* is not wrapped in single quotes between the 2 "%".
*/
Expand Down Expand Up @@ -1838,7 +1838,7 @@ public function data_prepare_with_placeholders() {
),

/*
* @ticket 52506.
* @ticket 52506
* Adding an escape method for Identifiers (e.g. table/field names).
*/
array(
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/formatting/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function data_timezone_provider() {
'timezone_string' => '',
'gmt_offset' => 3,
),
// @ticket 56468.
// @ticket 56468
'deprecated timezone string and no GMT offset set' => array(
'timezone_string' => 'America/Buenos_Aires',
'gmt_offset' => 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function test_group_html_generation_single_data_item() {
* Test when a multiple data items are passed.
*
* @ticket 44044
* @ticket 46895 Updated to remove </h2> from test to avoid Count introducing failure.
* @ticket 46895
*/
public function test_group_html_generation_multiple_data_items() {
$data = array(
Expand Down Expand Up @@ -75,6 +75,7 @@ public function test_group_html_generation_multiple_data_items() {

$actual = wp_privacy_generate_personal_data_export_group_html( $data, 'test-data-group', 2 );

// Updated to remove </h2> from test to avoid Count introducing failure (ticket #46895).
$this->assertStringContainsString( '<h2 id="test-data-group-test-data-group">Test Data Group', $actual );
$this->assertStringContainsString( '<td>Field 1 Value', $actual );
$this->assertStringContainsString( '<td>Another Field 1 Value', $actual );
Expand Down

0 comments on commit 236a7e0

Please sign in to comment.