Skip to content

Commit

Permalink
original tests
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Nov 20, 2020
1 parent 11acc23 commit 7cde9aa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test-cptp-module-permalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,11 @@ public function test_to_private_post_type( $structure ) {
$this->go_to( get_permalink( $id ) );
$this->assertFalse( is_single() );

// comment out in wp 5.6 beta 4
// $attachment_link = user_trailingslashit( trailingslashit( $post_link ) . get_post( $attachment_id )->post_name );
// $this->assertEquals( $attachment_id, url_to_postid( get_attachment_link( $attachment_id ) ) );
// $this->assertEquals( $attachment_link, get_attachment_link( $attachment_id ) );
// $this->go_to( get_attachment_link( $attachment_id ) );
// $this->assertTrue( is_attachment() );
$attachment_link = user_trailingslashit( trailingslashit( $post_link ) . get_post( $attachment_id )->post_name );
$this->assertEquals( $attachment_id, url_to_postid( get_attachment_link( $attachment_id ) ) );
$this->assertEquals( $attachment_link, get_attachment_link( $attachment_id ) );
$this->go_to( get_attachment_link( $attachment_id ) );
$this->assertTrue( is_attachment() );
}

/**
Expand Down

0 comments on commit 7cde9aa

Please sign in to comment.