Changeset 51492
- Timestamp:
- 07/26/2021 07:09:41 PM (3 years ago)
- Location:
- trunk/tests/phpunit/tests/sitemaps
- Files:
-
- 2 edited
- 7 moved
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' ) ), -
trunk/tests/phpunit/tests/sitemaps/sitemaps.php
r51462 r51492 1 1 <?php 2 2 /** 3 * Sitemaps: Sitemaps_Tests class3 * Sitemaps: Tests_Sitemaps_Sitemaps class 4 4 * 5 5 * Main test class. … … 16 16 * @group sitemaps 17 17 */ 18 class Test _Sitemaps extends WP_UnitTestCase {18 class Tests_Sitemaps_Sitemaps extends WP_UnitTestCase { 19 19 20 20 /** -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsIndex.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Index extends WP_UnitTestCase { 6 class Tests_Sitemaps_wpSitemapsIndex extends WP_UnitTestCase { 7 7 8 public function test_get_sitemap_list() { 8 9 $registry = new WP_Sitemaps_Registry(); -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsPosts.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Posts extends WP_UnitTestCase { 6 class Tests_Sitemaps_wpSitemapsPosts extends WP_UnitTestCase { 7 7 8 /** 8 9 * Tests getting sitemap entries for post type page with 'posts' homepage. -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsRegistry.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Registry extends WP_UnitTestCase { 6 class Tests_Sitemaps_wpSitemapsRegistry extends WP_UnitTestCase { 7 7 8 public function test_add_provider() { 8 9 $provider = new WP_Sitemaps_Test_Provider(); -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsRenderer.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Renderer extends WP_Test_XML_TestCase { 6 class Tests_Sitemaps_wpSitemapsRenderer extends WP_Test_XML_TestCase { 7 7 8 public function test_get_sitemap_stylesheet_url() { 8 9 $sitemap_renderer = new WP_Sitemaps_Renderer(); -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsStylesheet.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Stylesheet extends WP_UnitTestCase { 6 class Tests_Sitemaps_wpSitemapsStylesheet extends WP_UnitTestCase { 7 7 8 /** 8 9 * Test that stylesheet content can be filtered. -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsTaxonomies.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Taxonomies extends WP_UnitTestCase { 6 class Tests_Sitemaps_wpSitemapsTaxonomies extends WP_UnitTestCase { 7 7 8 /** 8 9 * List of post_tag IDs. -
trunk/tests/phpunit/tests/sitemaps/wpSitemapsUsers.php
r51491 r51492 4 4 * @group sitemaps 5 5 */ 6 class Test_WP_Sitemaps_Users extends WP_UnitTestCase { 6 class Tests_Sitemaps_wpSitemapsUsers extends WP_UnitTestCase { 7 7 8 /** 8 9 * List of user IDs.
Note: See TracChangeset
for help on using the changeset viewer.