Changeset 60112
- Timestamp:
- 03/31/2025 09:21:05 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/wpGetCanonicalUrl.php
r60109 r60112 2 2 /** 3 3 * Tests for the wp_get_canonical_url() function. 4 *5 * @package WordPress6 * @subpackage Link7 */8 9 /**10 * Class for Testing the wp_get_canonical_url() function.11 4 * 12 5 * @group link … … 15 8 */ 16 9 class Tests_Link_WpGetCanonicalUrl extends WP_UnitTestCase { 10 17 11 /** 18 12 * The ID of the post. … … 52 46 53 47 /** 54 * Test for a nonexisting post.48 * Tests that false is returned for a non-existing post. 55 49 */ 56 50 public function test_non_existing_post() { … … 59 53 60 54 /** 61 * Test for a post that is not published.55 * Tests that false is returned for a post that is not published. 62 56 */ 63 57 public function test_post_status() { … … 72 66 73 67 /** 74 * Test for a page that is not the queried object.68 * Tests canonical URL for a page that is not the queried object. 75 69 */ 76 70 public function test_non_current_page() { … … 79 73 80 74 /** 81 * Test nonpermalink structure page usage.75 * Tests non-permalink structure page usage. 82 76 */ 83 77 public function test_paged_with_plain_permalink_structure() { … … 103 97 104 98 /** 105 * Test permalink structure page usage.99 * Tests permalink structure page usage. 106 100 */ 107 101 public function test_paged_with_custom_permalink_structure() { … … 125 119 126 120 /** 127 * Test nonpermalink structure comment page usage.121 * Tests non-permalink structure comment page usage. 128 122 */ 129 123 public function test_comments_paged_with_plain_permalink_structure() { … … 151 145 152 146 /** 153 * Test permalink structure comment page usage.147 * Tests permalink structure comment page usage. 154 148 */ 155 149 public function test_comments_paged_with_pretty_permalink_structure() { … … 175 169 176 170 /** 177 * T his test ensures that attachments with 'inherit' status properly receive a canonical URL.171 * Tests that attachments with 'inherit' status properly receive a canonical URL. 178 172 * 179 173 * @ticket 63041 … … 188 182 189 183 /** 190 * Test calling of filter.184 * Tests calling of filter. 191 185 */ 192 186 public function test_get_canonical_url_filter() {
Note: See TracChangeset
for help on using the changeset viewer.