Make WordPress Core


Ignore:
Timestamp:
07/26/2021 07:09:41 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Rename classes in phpunit/tests/sitemaps/ per the naming conventions.

https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/#naming-and-organization

Follow-up to [47780], [48911], [49327], [50291], [50292], [50342], [50452], [50453], [50456], [50967], [50968], [50969], [51491].

See #53363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/sitemaps/functions.php

    r51436 r51492  
    44 * @group sitemaps
    55 */
    6 class Test_Sitemaps_Functions extends WP_UnitTestCase {
     6class Tests_Sitemaps_Functions extends WP_UnitTestCase {
     7
    78    /**
    89     * Test getting the correct number of URLs for a sitemap.
     
    6162
    6263    /**
    63      * Test get_sitemap_url() with ugly permalinks.
     64     * Test get_sitemap_url() with plain permalinks.
    6465     *
    65      * @dataProvider ugly_permalinks_provider
     66     * @dataProvider plain_permalinks_provider
    6667     */
    67     public function test_get_sitemap_url_ugly_permalinks( $name, $subtype_name, $page, $expected ) {
     68    public function test_get_sitemap_url_plain_permalinks( $name, $subtype_name, $page, $expected ) {
    6869        $actual = get_sitemap_url( $name, $subtype_name, $page );
    6970
     
    8586
    8687    /**
    87      * Data provider for test_get_sitemap_url_ugly_permalinks.
     88     * Data provider for test_get_sitemap_url_plain_permalinks.
    8889     *
    8990     * @return array[] {
     
    9697     * }
    9798     */
    98     function ugly_permalinks_provider() {
     99    function plain_permalinks_provider() {
    99100        return array(
    100101            array( 'posts', 'post', 1, home_url( '/?sitemap=posts&sitemap-subtype=post&paged=1' ) ),
Note: See TracChangeset for help on using the changeset viewer.