Skip to content

Commit

Permalink
Tests: Correct capitalization and fix typos in some test class names.
Browse files Browse the repository at this point in the history
Follow-up to [57060], [57718], [57725], [57726], [57727], [57728].

See #59647.

git-svn-id: https://develop.svn.wordpress.org/trunk@57733 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 27, 2024
1 parent 1de7ddb commit b75d47c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/date/wpCheckdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Tests for the wp_checkdate() function.
*
* @ticket 59825
*
* @group date
* @group datetime
* @group functions
Expand All @@ -14,6 +12,8 @@
class Tests_Date_wpCheckdate extends WP_UnitTestCase {

/**
* @ticket 59825
*
* @dataProvider data_wp_checkdate
*
* @param int|string $month The month to check.
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/formatting/maybeHashHexColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @covers ::maybe_hash_hex_color
*/
class Tests_formating_maybeHashHexColor extends WP_UnitTestCase {
class Tests_Formatting_maybeHashHexColor extends WP_UnitTestCase {

/**
* @ticket 60272
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/formatting/sanitizeHexColor.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

/**
* Tests for the sanitize_hex_color function.
* Tests for the sanitize_hex_color() function.
*
* @group formatting
*
* @covers ::sanitize_hex_color
*/
class Tests_formating_sanitizeHexColor extends WP_UnitTestCase {
class Tests_Formatting_sanitizeHexColor extends WP_UnitTestCase {

/**
* @ticket 60270
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/formatting/sanitizeHexColorNoHash.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

/**
* Tests for the sanitize_hex_color function.
* Tests for the sanitize_hex_color_no_hash() function.
*
* @group formatting
*
* @covers ::sanitize_hex_color_no_hash
*/
class Tests_formating_sanitizeHexColorNoHash extends WP_UnitTestCase {
class Tests_Formatting_sanitizeHexColorNoHash extends WP_UnitTestCase {

/**
* @ticket 60271
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/functions/mceSetDirection.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

/**
* Tests for the _mce_set_direction function.
* Tests for the _mce_set_direction() function.
*
* @group functions
*
* @covers ::_mce_set_direction
*/
class Tests_functions_mceSetDirection extends WP_UnitTestCase {
class Tests_Functions_mceSetDirection extends WP_UnitTestCase {

/**
* @ticket 60219
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/functions/wpCacheSetLastChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @covers ::wp_cache_set_last_changed
*/
class Tests_functions_wpCacheSetLastChanged extends WP_UnitTestCase {
class Tests_Functions_wpCacheSetLastChanged extends WP_UnitTestCase {

/**
* Check the cache key last_changed is set for the specified group.
Expand Down
8 changes: 3 additions & 5 deletions tests/phpunit/tests/functions/wpParseSlugList.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

/**
* Tests for the wp_parse_slug_list function.
* Tests for the wp_parse_slug_list() function.
*
* @group functions
*
* @covers ::wp_parse_slug_list
*/
class Tests_functions_wpParseSlugList extends WP_UnitTestCase {
class Tests_Functions_wpParseSlugList extends WP_UnitTestCase {

/**
* @ticket 60217
Expand All @@ -20,9 +20,7 @@ public function test_wp_parse_slug_list( $input_list, $expected ) {
}

/**
* data for test_wp_parse_slug_list
*
* @ticket 60217
* Data provider for test_wp_parse_slug_list().
*
* @return array[]
*/
Expand Down

0 comments on commit b75d47c

Please sign in to comment.