Changeset 51492 for trunk/tests/phpunit/tests/sitemaps/functions.php
- Timestamp:
- 07/26/2021 07:09:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/sitemaps/functions.php
r51436 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_Sitemaps_Functions extends WP_UnitTestCase { 6 class Tests_Sitemaps_Functions extends WP_UnitTestCase { 7 7 8 /** 8 9 * Test getting the correct number of URLs for a sitemap. … … 61 62 62 63 /** 63 * Test get_sitemap_url() with uglypermalinks.64 * Test get_sitemap_url() with plain permalinks. 64 65 * 65 * @dataProvider ugly_permalinks_provider66 * @dataProvider plain_permalinks_provider 66 67 */ 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 ) { 68 69 $actual = get_sitemap_url( $name, $subtype_name, $page ); 69 70 … … 85 86 86 87 /** 87 * Data provider for test_get_sitemap_url_ ugly_permalinks.88 * Data provider for test_get_sitemap_url_plain_permalinks. 88 89 * 89 90 * @return array[] { … … 96 97 * } 97 98 */ 98 function ugly_permalinks_provider() {99 function plain_permalinks_provider() { 99 100 return array( 100 101 array( 'posts', 'post', 1, home_url( '/?sitemap=posts&sitemap-subtype=post&paged=1' ) ),
Note: See TracChangeset
for help on using the changeset viewer.