Skip to content

Commit 7cde9aa

Browse files
committed
original tests
1 parent 11acc23 commit 7cde9aa

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/test-cptp-module-permalink.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,11 @@ public function test_to_private_post_type( $structure ) {
391391
$this->go_to( get_permalink( $id ) );
392392
$this->assertFalse( is_single() );
393393

394-
// comment out in wp 5.6 beta 4
395-
// $attachment_link = user_trailingslashit( trailingslashit( $post_link ) . get_post( $attachment_id )->post_name );
396-
// $this->assertEquals( $attachment_id, url_to_postid( get_attachment_link( $attachment_id ) ) );
397-
// $this->assertEquals( $attachment_link, get_attachment_link( $attachment_id ) );
398-
// $this->go_to( get_attachment_link( $attachment_id ) );
399-
// $this->assertTrue( is_attachment() );
394+
$attachment_link = user_trailingslashit( trailingslashit( $post_link ) . get_post( $attachment_id )->post_name );
395+
$this->assertEquals( $attachment_id, url_to_postid( get_attachment_link( $attachment_id ) ) );
396+
$this->assertEquals( $attachment_link, get_attachment_link( $attachment_id ) );
397+
$this->go_to( get_attachment_link( $attachment_id ) );
398+
$this->assertTrue( is_attachment() );
400399
}
401400

402401
/**

0 commit comments

Comments
 (0)