Skip to content

Commit

Permalink
add pagination test
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Aug 11, 2016
1 parent 6439c48 commit a45b658
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test-permalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public function test_permalink( $structure ) {
$wp_rewrite->flush_rules();

$this->assertEquals( $id, url_to_postid( get_permalink( $id ) ) );
$this->go_to( get_permalink( $id ) );
$this->assertQueryTrue( 'is_single', 'is_singular' );
$this->go_to( add_query_arg( 'page', 2, get_permalink( $id ) ) );
$this->assertQueryTrue( 'is_single', 'is_singular' );
$this->assertEquals( get_query_var( "page"), 2 );

}

Expand Down

0 comments on commit a45b658

Please sign in to comment.