- Timestamp:
- 06/08/2021 10:59:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/getPostCommentsFeedLink.php
r50454 r51121 139 139 $this->assertSame( $expected, $link ); 140 140 } 141 142 /** 143 * @ticket 52814 144 */ 145 public function test_nonexistent_page() { 146 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 147 148 // Use the largest integer to ensure the post does not exist. 149 $post_id = PHP_INT_MAX; 150 $link = get_post_comments_feed_link( $post_id ); 151 152 $this->assertEmpty( $link ); 153 } 141 154 }
Note: See TracChangeset
for help on using the changeset viewer.