Changeset 50491 for trunk/tests/phpunit/tests/sitemaps/functions.php
- Timestamp:
- 03/04/2021 10:11:38 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/sitemaps/functions.php
r48937 r50491 102 102 array( 'posts', 'page', 1, home_url( '/?sitemap=posts&sitemap-subtype=page&paged=1' ) ), 103 103 array( 'posts', 'page', 5, home_url( '/?sitemap=posts&sitemap-subtype=page&paged=5' ) ), 104 // post_type doesn't exist.104 // Post type doesn't exist. 105 105 array( 'posts', 'foo', 5, false ), 106 106 array( 'taxonomies', 'category', 1, home_url( '/?sitemap=taxonomies&sitemap-subtype=category&paged=1' ) ), 107 107 array( 'taxonomies', 'post_tag', 1, home_url( '/?sitemap=taxonomies&sitemap-subtype=post_tag&paged=1' ) ), 108 // Negative paged, gets converted to its absolute value. 108 109 array( 'taxonomies', 'post_tag', -1, home_url( '/?sitemap=taxonomies&sitemap-subtype=post_tag&paged=1' ) ), 109 // negative paged, gets converted to it's absolute value.110 110 array( 'users', '', 4, home_url( '/?sitemap=users&paged=4' ) ), 111 // users provider doesn't allow subtypes.111 // Users provider doesn't allow subtypes. 112 112 array( 'users', 'foo', 4, false ), 113 // provider doesn't exist.113 // Provider doesn't exist. 114 114 array( 'foo', '', 4, false ), 115 115 ); … … 117 117 118 118 /** 119 * Data provider for test_get_sitemap_url_pretty_permalinks 119 * Data provider for test_get_sitemap_url_pretty_permalinks. 120 120 * 121 121 * @return array[] { … … 134 134 array( 'posts', 'page', 1, home_url( '/wp-sitemap-posts-page-1.xml' ) ), 135 135 array( 'posts', 'page', 5, home_url( '/wp-sitemap-posts-page-5.xml' ) ), 136 // post_type doesn't exist.136 // Post type doesn't exist. 137 137 array( 'posts', 'foo', 5, false ), 138 138 array( 'taxonomies', 'category', 1, home_url( '/wp-sitemap-taxonomies-category-1.xml' ) ), 139 139 array( 'taxonomies', 'post_tag', 1, home_url( '/wp-sitemap-taxonomies-post_tag-1.xml' ) ), 140 // negative paged, gets converted to it's absolute value.140 // Negative paged, gets converted to its absolute value. 141 141 array( 'taxonomies', 'post_tag', -1, home_url( '/wp-sitemap-taxonomies-post_tag-1.xml' ) ), 142 142 array( 'users', '', 4, home_url( '/wp-sitemap-users-4.xml' ) ), 143 // users provider doesn't allow subtypes.143 // Users provider doesn't allow subtypes. 144 144 array( 'users', 'foo', 4, false ), 145 // provider doesn't exist.145 // Provider doesn't exist. 146 146 array( 'foo', '', 4, false ), 147 147 );
Note: See TracChangeset
for help on using the changeset viewer.