Changeset 50132 for trunk/tests/phpunit/tests/link.php
- Timestamp:
- 02/02/2021 12:38:40 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/link.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link.php
r48937 r50132 205 205 } 206 206 207 $this->assertSame( home_url( user_trailingslashit( $attachment->post_name ) ), get_permalink( $attachment_id ) ); 207 $this->assertSame( home_url( "/?attachment_id={$attachment->ID}" ), get_permalink( $attachment_id ) ); 208 // Visit permalink. 209 $this->go_to( get_permalink( $attachment_id ) ); 210 $this->assertQueryTrue( 'is_attachment', 'is_single', 'is_singular' ); 208 211 } 209 212 }
Note: See TracChangeset
for help on using the changeset viewer.